Sha256: 6bdcbcbf5f141f85fef4a7d710dd46a2903e8d7304bf3647f4fbe55e7c5b45a2

Contents?: true

Size: 324 Bytes

Versions: 11

Compression:

Stored size: 324 Bytes

Contents

require 'rails_helper'

RSpec.describe AuthorsController do
  describe 'routing' do

    it 'routes to #index' do
      expect(:get => '/authors').to route_to('authors#index')
    end

    it 'routes to #show' do
      expect(:get => '/authors/author-slug').to route_to('authors#show', id: 'author-slug')
    end

  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
friendly_id-method_scopes-0.3.7 spec/routing/authors_routing_spec.rb
friendly_id-method_scopes-0.3.3 spec/routing/authors_routing_spec.rb
friendly_id-method_scopes-0.3.2 spec/routing/authors_routing_spec.rb
friendly_id-method_scopes-0.3.1 spec/routing/authors_routing_spec.rb
friendly_id-method_scopes-0.3.0 spec/routing/authors_routing_spec.rb
friendly_id-method_scopes-0.2.6 spec/routing/authors_routing_spec.rb
friendly_id-method_scopes-0.2.5 spec/routing/authors_routing_spec.rb
friendly_id-method_scopes-0.1.8 spec/routing/authors_routing_spec.rb
friendly_id-method_scopes-0.1.7 spec/routing/authors_routing_spec.rb
friendly_id-method_scopes-0.1.6 spec/routing/authors_routing_spec.rb
friendly_id-method_scopes-0.1.5 spec/routing/authors_routing_spec.rb