Sha256: 79fd99fca9bf4ac943fca4615f4706c7d8826d0c34039b61935be67b86ee752f
Contents?: true
Size: 1.02 KB
Versions: 3
Compression:
Stored size: 1.02 KB
Contents
=== Upgrade to rspec-rails ???? == route_for After a change to edge rails broke our monkey-patched #route_for method, I decided to just delegate to rails' #assert_generates method. For most cases, this will not present a problem, but for some it might. You'll know if you upgrade and see any newly failing, route-related examples. Here are the things that you might need to change. * Make sure IDs are strings If you had :id => 1 before, you need to change that to :id => "1" #old route_for(:controller => 'things', :action => 'show', :id => 1).should == "/things/1" #new route_for(:controller => 'things', :action => 'show', :id => "1").should == "/things/1" * Convert paths for non-get methods to hashes If you had an example with a route that requires post, put, or delete, you'll need to declare that explicitly. #old route_for(:controller => 'things', :action => 'create').should == "/things" #new route_for(:controller => 'things', :action => 'create').should == {:path => "/things", :method => :post}
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
dchelimsky-rspec-rails-1.1.99.1 | Upgrade.txt |
dchelimsky-rspec-rails-1.1.99.2 | Upgrade.txt |
dchelimsky-rspec-rails-1.1.99.3 | Upgrade.txt |