Sha256: ceac298f422e523137abd45ee0fb7fb815a22f811e3400135a577ea10fdeb5f4
Contents?: true
Size: 678 Bytes
Versions: 1
Compression:
Stored size: 678 Bytes
Contents
require 'spec_helper.rb' describe "status routes", :type => :routing do it 'routes /status.json to statuses#show' do expect({ :get => '/status.json'}).to route_to({ :action => 'show', :controller => 'statuses', :format => 'json', }) end it 'does not route /status' do expect({ :get => '/status'}).to_not be_routable end it 'does not route /status.html' do expect({ :get => '/status.html'}).to_not be_routable end it 'does not route /status.xml' do expect({ :get => '/status.xml'}).to_not be_routable end it 'does not route /status.json.json' do expect({ :get => '/status.json.json'}).to_not be_routable end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rapporteur-3.2.0 | spec/routing/routes_spec.rb |