I\'m using Ryan Bates\'s nifty:authentication, and starting testing with Rspec. Fought with this for weeks, and still don\'t understand what\'s happening.
i am working on rails 2.3.5 where i want to us Rspec for testing purpose. I have installed rspec gem but not able to list rspec in generator\'s list. I am referring https://github.com/rspec/rspec-rail
In the开发者_StackOverflow社区 rails project, when i write some controller\'s spec like this: describe "POST \'create\'" do
In my actual project I use the following gems for testing: capybara from git://github.com/jnicklas/capybara.git in revision 6641fddcfc337a3ddaa84ac59272e884090332c3
The render开发者_开发技巧ed method in RSpec-rails\' views examples is used for getting a rendered view template.
I am trying to follow Rails Tutorial and I have a failed rspec but in browser the appworks as needed. That is when I am signed in (in browser) and go to \"http://localhost:3000/users/1/edit\" this pag
I have a Workout model that has many PerformedExercises, which has many PeformedSets. I can\'t get it to build an object in my test and I am not sure if it\'s SQLite3, or something else (it works fine
By default, Cucumber ignores rescue_from in your ApplicationController and reports any exceptions directly.This is accomplished by the following line in the Cucumber env.rb file
I\'m trying to test the Hour model with RSpec, namely the class method \'find_days_with_no_hours\' that behaves like a scope. Business has_many Hours associated through STI.
I\'m trapped on one spec in RSpec. How can I update a model\'s attribute to make it nil? Is better to validate under update controller spec?