Sha256: 384b474b46209cace3e7c4c4877fa3871dc7e51fc0e498c250ac47e81e112d34

Contents?: true

Size: 526 Bytes

Versions: 6

Compression:

Stored size: 526 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

6 entries across 6 versions & 1 rubygems

Version Path
rapporteur-2.1.0 spec/routing/routes_spec.rb
rapporteur-2.0.1 spec/routing/routes_spec.rb
rapporteur-2.0.0 spec/routing/routes_spec.rb
rapporteur-1.1.0 spec/routing/routes_spec.rb
rapporteur-1.0.1 spec/routing/routes_spec.rb
rapporteur-1.0.0 spec/routing/routes_spec.rb