I\'m upgrading my rails 2 app to rails 3. I use rspec, shoulda and factory girl in the test suite. One particular pattern is causing an error I\'m having a really hard time both researching and solvi
I\'m trying to use Model < ActiveRecord::Base in one of my gem tests with shoulda and I\'m getting the following error
I have a bunch of very repetitive rspec tests that all have the same format: it \"inserts the correct ATTRIBUTE_NAME\" do
I have a before_validation :do_something, :on => :create in one of my models. I want to t开发者_如何学Goest that this happens, and doesn\'t happen on :save.
I\'m using shoulda-matchers with rails and I\'m creating a model called \"comments\" and another model called \"post\". Comments is polymorphic.
I have a fairly typical require_no_user as a before_filter in one of my controllers. I need to test that a logge开发者_如何学Pythond in user is redirected by this filter if they try to access any of t
I have been wondering about the usefulness of writing tests that match code one-by-one. Just an example: in Rails, you can define 7 restful routes in one line in routes.rb using:
I\'m upgrading a Rails 2.3.5 app to Rails 3.0.3. But my integration tests aren\'t working. I\'m getting this error:
I have the following: 1 ENV[\"RAILS_ENV\"] = \"test\" 2 require File.expand_path(File.dirname(__FILE__) + \"/../config/environment\")
I\'m writing unit test for a image uploader that uses paperclip. It\'s being bumpy and I was slowly moving thought the hurdles till I got stuck in the paperclip::geometry class