WIth ruby 1.8.7 and rails 3.0.3 on Mac OS I always got \"&#...;\" characters in ERB template output running rspec 2.4 controllers tests (with integrate_views).
I rem开发者_StackOverflow中文版ember a conflict in the past between the Rspec 1.x and Rspec 2.x binaries... since the binary has been renamed from \'spec\' to \'rspec\', can they now co-exist on the s
In my ApplicationController I have a method defined as a helper method: helper_method :some_meth开发者_StackOverflow中文版od_here
Just starting out with RSpec. Everything is going smoothly, except for one spec with nested controllers.
I really like the way RSpec is able to separate controller and view tests but have some problems with getting capybara matchers to work in a vi开发者_Go百科ew test. What i basically try to achieve is
I\'m just starting out with RSpec and having a little difficulty writing up controller tests for nested resources. I\'ve tried googling this, but without much luck.
I have a Page scaffold that I created through rails generate scaffold.I ran rake db:migrate, and viewing the database through SQLite Database Browser reveals that it in fact exists.I can go to the rai
I\'m trying to spec the controller code: # ClustersController def create # create new cluster @cluster.user = current开发者_如何学C_user
i\'m having an issue testing a rails 3 admin controller. it appears that the controller action is not even being called.i\'ve tested this by having the action explicitly throw an exception, and the te
I\'m hitting a开发者_开发知识库 mental block. Can anyone explain to me how I can write a spec test for validate_uniqueness_of? Or use Shoulda: