I have 2 models, User and Bucket. User has_many Buckets and a Bucket belongs_to a User. In factories.rb, I have:
The database is not being cleaned after each integration test. The value stays in the database. Is there a开发者_如何学Pythonn option I should have to make this happen?
I am creating request specs following the Railscast at http://railscasts.com/episodes/257-request-specs-and-capybara
I am new to Cucum开发者_JAVA百科ber testing and I am trying to understand when to use Cucumber and when to use RSpec. For my models, I know I should be testing them with RSpec, and I know that I don\'
When I\'m running my specs like \"rspec .\" from the command line, I can see puts or logger.info in the console, if i call that code in my spec.However, if the call to logger.info or puts is in my con
I\'m trying to get the RSpec-tests of my Rails application back to work. As far as I can tell, the only real difference between when they were green and now is that I\'m now using ruby 1.9, whereas th
I\'m using rspec to test a controller that uses a model that has attr_accessible declared. I don\'t want to be testing that attr_accesible is working (my model spec does that), but I do want to make s
I\'ve just finished the Rails3Tutorial book and I\'m trying my first real world rails dev. (Feels like driving alone for the first time just after passing the test - scary).
Helper Method # Determine if this is user\'s first time def first_time? cookies[:first_time].nil? end Attempted Rspec test
I\'m trying to make a simple app. When Im testing it in browser everytyhing works just fine.Howerver, when I try to run some tests with RSpec (2.5) it fails when it comes to :create test for controlle