Sha256: 439c86a5d0da2e3637629e05484076ac205dcce731a86434894949b597a2d647

Contents?: true

Size: 495 Bytes

Versions: 2

Compression:

Stored size: 495 Bytes

Contents

require 'rails_helper'

RSpec.describe "FakesController", type: :routing do

  describe "get /fakes/feed", type: :routing do
    it 'should be searchable' do
      expect(get: "/fakes/feed").to route_to(
        controller: "fakes", 
        action: 'feed',
      )
    end
  end
  describe "get /fakes/filters", type: :routing do
    it 'should be filterable' do
      expect(get: "/fakes/filters").to route_to(
        controller: "fakes", 
        action: 'filters',
      )
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
morse_searchable-0.0.7 spec/routing/concern_routing_spec.rb
morse_searchable-0.0.6 spec/routing/concern_routing_spec.rb