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.
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)
Check this out: https://github.com/johnbintz/jasmine-headless-webkit
It's allows to run specs without hitting a browser. It's lightning fast.
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.
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)