RailsCasts Pro episodes are now free!

Learn more or hide this

Andrei Kulakov's Profile

GitHub User: dre3k

Comments by Andrei Kulakov

Avatar

Check this out: https://github.com/johnbintz/jasmine-headless-webkit
It's allows to run specs without hitting a browser. It's lightning fast.

Avatar

It took me a little to figure out that for best results web browser must support WebSockets. I was using Opera 11 and Firefox 4 in which WebSockets are disabled by default.

Avatar

About view testing with rspec and decent_exposure:
http://blog.angelbob.com/posts/379-RSpec-Haml-and-decent-exposure-are-incompatible-That-d-be-odd----published-rails

Just mock it:
view.should_receive(:entry).at_least(:once).and_return(my_entry)