search for: rspec_on_rails_match

Displaying 4 results from an estimated 4 matches for "rspec_on_rails_match".

Did you mean: rspec_on_rails_matcher
2008 Jan 16
2
rspec_on_rails_matchers
All, Sorry for spamming this list about this but I think everyone who could help me with this problem is on this list... If there is a better place to post this question let me know. Anyways, I am trying to use rspec_on_rails_matchers in my rails app to improve my view specs but I can''t get them to work. The helpers for the form tags never seem to be called. I created a new Rails 2.0.2 app, installed RSpec and rspec_on_rails 1.1.2, then installed the rspec_on_rails_matchers... FYI, I am using ruby 1.8.5 (2006-12...
2009 Mar 20
1
bypass_rescue and its inverse
...my speccing of the rescue_from code a little trickier. Is there an easy way to do the inverse: to switch the default Rails behaviour back on, on command? Thanks, Matt PS I guess the other option is to figure out how to declaratively spec rescue from (which I, and judging by forks of the rspec_on_rails_matchers plugin, several others figured out for before filters)... Bit unawake yet, may follow up with an answer to my own question when I''ve imbibed the caffeine. -- Matt Patterson | Design & Code <matt at reprocessed org> | http://www.reprocessed.org/
2007 Mar 29
21
a better "should have valid associations"
This is pretty much the same as last time around, if you recall. Thanks to Wilson for converting to the new form. I''ve added a few lines. Basically, it iterates over your model associations and does two things. - First, just try to call the association. Usually fixes speeling erors or other such silliness. - Second, try to find a record with an :include on the association. This
2007 May 27
12
Checking for Range
how would you check for a range using rspec? person.password.range.should == Range.new(5..40) <- this doesn''t work -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/rspec-users/attachments/20070527/4d8cb007/attachment-0001.html