It\'s my understanding that Rails\' testing environment is torn down and rebuilt before each test...so how do I test a controller that requires that a user be logged in and that user can\'t be created
I\'m using RSpec for testing and when I left work Friday afternoon, my tests were passing. But when I went home and synced my repository, the tests failed on my laptop. Now back at work, the tests are
I\'ve started learning Rails3 / rspec recently, and I\'m finding I\'m spending about 80% of my time trying to f开发者_如何转开发igure out how to do basic things in rspec. I\'m continuously frustrated
How can I test res开发者_Python百科cue_from is RSpec?I\'d like to make sure that if one of the exceptions is raised, that the controller correctly sets the flash and does the redirect.Is there a way t
I have a simple helper method in application_helper.rb that I am trying to test and can\'t for the life of me figure out why my spec is failing.I\'ve included the code below.The spec prints out expect
I have a user model class User < ActiveRecord::Base has_many :languages, :dependent => :destroy accepts_nested_attributes_for :languages,:reject_if => lambda { |l| l[:name].blank? }
Rails 3.0.3, Rspec 2, Zentest gem - extremely frustrated right now, so give me some slack. Why doesn\'t autotest rerun my integration (/request) and controller specs why I make changes to a view fil
I\'m trying to test for the presence of a form. I\'m new to Rails. My new.html.erb_spec.rb file\'s contents are:
I\'m trying to write a custom RSpec matcher for cucumber. I require cucumber/rails/rspec in env.rb, but I still get \"uninitialized constant Spec::Matchers\" error. I\'m using la开发者_如何转开发test
Utilizing ActionController\'s new respond_with method...how does it determine what to render when action (save) is successful and when it\'s not?