Sha256: 68ee1810d11d7e46363918d8c4d9a4664683249e129e22460f4bd6ee143cdf03
Contents?: true
Size: 566 Bytes
Versions: 1
Compression:
Stored size: 566 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 end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rapporteur-3.1.0 | spec/routing/routes_spec.rb |