I have Rspec + Shoulda + FactoryGirl and I am receiving the following error when attempting to call Shoulda\'s have_many or belong_to methods. All Shoulda methods used in the \"validations\" group wor
One of my specs fails when I run it via \"rake spec\" but passes when I use the RSpec executable \"spec\".
I\'m using RR for mocking and stubbing in RSpec, and I\'ve run across a situation where I\'d like to stub a method from a super class of a controller that sets some instance variables. I can work out
I\'m trying to expect an error in an rspec test. lambda {Participant.create!({:user_id => three.id, :match_id => match.id, :team => 1})}.should raise_error StandardError
I have some code that adds to the callbacks that rspec-rails adds by default to setup and teardown fixtures.
So I\'m fairly new to ruby in general, and I\'m writing some rspec test cases for an object I am creating.Lots of the test cases are fairly basic and I just want to ensure that values are being popula
I am running an RSpec test on a model and getting errors for string methods such as: \"index, \"downcase,\" and开发者_运维技巧 \"strip.\"Any ideas why that is and how I can fix it?If you are getting \
I have a test which needs to check if a block given to a method is being called. block = lambda { #some stuff
I\'m having big trouble testing with rSpec\'s controller API. Right now I\'m using a middleware authentication solution (Warden), and when I run the specs, the proxy added by the middleware is not the
I\'ve been using Rspec for a while and for some reason am receiving errors on a controller called ReferencesController.