Sha256: 487e3ee8dfe2a6f156632bf6d3de73fe8fd19ba9337e1cfb7698eb07402bad5d
Contents?: true
Size: 677 Bytes
Versions: 2
Compression:
Stored size: 677 Bytes
Contents
require 'spec_helper.rb' describe "status route", :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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rapporteur-3.4.0 | spec/routing/routes_spec.rb |
rapporteur-3.3.0 | spec/routing/routes_spec.rb |