Sha256: 9afd64ef8b95e42ae3239ac58b393f07f3f92406b87f4a91f9a595cf2e1dd352

Contents?: true

Size: 547 Bytes

Versions: 3

Compression:

Stored size: 547 Bytes

Contents

require 'spec_helper.rb'

describe "status routes" 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

3 entries across 3 versions & 1 rubygems

Version Path
rapporteur-3.0.2 spec/routing/routes_spec.rb
rapporteur-3.0.1 spec/routing/routes_spec.rb
rapporteur-3.0.0 spec/routing/routes_spec.rb