Using RSpec and Factory Girl, I create a record that when created, has associated \'hours\' records automatically created in after_create.
I am trying to sort out my RSpec tests for a controller of mine, but its not working and I need some help figuring it out.
I\'m pretty new to testing and rails and tried to figure it out myself but without any luck. I have the following models
I have a pretty big spec suite (watirspec), I am running it against a Ruby gem (safariwatir) and there are a lot of failures:
I\'m trying to test the following helper开发者_StackOverflow社区 method in rails: def current_has_class_link(text, path, class_name=\"selected\")
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.
Based on my understanding of the rspec spec, I would expect the following example to pass. describe ApplicationController do
I\'m trying to write a request_spec that tests the functionality of a page with a form that does a ajax autocomplete lookup and returns valid results to then activate the submit button.
Say for instance I have a datefield or 3 select fields for day month and yea.. How does the final selection of date get sent to the database? or in what format doesn\'t it get sent?
I\'m trying to use rspec to test a filter that I have in my ApplicationController. In spec/contr开发者_开发百科ollers/application_controller_spec.rb I have: