Sha256: 076b9fc85aec2d941e14e84f25ea4ea292efa0a8f36e2da9373e29591475c89e
Contents?: true
Size: 962 Bytes
Versions: 1
Compression:
Stored size: 962 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper') describe "named route report_with_last_name_smith_path" do it "maps /reports" do url_for(:host => 'a.com', :controller => 'reports', :action => 'index').should == 'http://a.com/reports' end describe "GET" do it "has routes for new" do url_for(:host => 'a.com', :controller => 'reports', :action => 'new').should == 'http://a.com/reports/new' end it "has routes for show" do url_for(:host => 'a.com', :controller => 'reports', :action => 'show', :id => 1).should == 'http://a.com/reports/1' end it "has routes for edit" do url_for(:host => 'a.com', :controller => 'reports', :action => 'edit', :id => 1).should == 'http://a.com/reports/1/edit' end it 'has routes for columns' do url_for(:host => 'a.com', :controller => 'reports', :action => 'columns', :report_id => 1).should == 'http://a.com/reports/1/columns' end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
report_ui-0.0.1.alpha | spec/routing/routing_spec.rb |