I\'ve got the following spec in spec/views/users/new.html.erb_spec.rb: require \'spec_helper\' describe \"users/new.html.erb\" do
I\'m trying to get a Rails (version 2.3.5) app set up to run RSpec and Autotest. I\'ve got both rspec (1.2.9) and rspec-rails (1.2.9) vendored as plugins in the app. I then have ZenTest 4.4.0, Autote
I have a bunch of recurring tests for some of my controller actions, all of which require authentication. As a result, you end up seeing a lot of code like the follo开发者_开发知识库wing:
I\'m using Rails3 with rspec and shoulda. I have the below spec describe PagesController, \"on GET to show while logged off\" do
Could you tell me how to test regex-code correctly? I test my user-login attribute with following code:
I used the approach details in Railscast espisode #197 on how to add dynamic input fields, but I\'m not sure how to write an RSpec test for it.Suggestions?
Could you tell me how to setup simplecov to test models with rspec and controller with cucumber only?
I\'m using rspec and I\'m trying to test whether or not my model y has many x. I\'ve tried all sorts of things, including looping through the methods array, and can\'t seem to开发者_如何学Python find
I am trying to mock out the session hash for a controller like so: it \"finds using the session[:company_id]\" do
I\'m writing an rspec scenario thats failing with: (#<User:0x1056904f0>).update_attributes(#<RSpec::Mocks::ArgumentMatchers::AnyArgMatcher:0x105623648>)