Skip to content

Commit

Permalink
Add a routing spec for SearchHistoryController
Browse files Browse the repository at this point in the history
  • Loading branch information
jcoyne committed Jul 13, 2018
1 parent cd944c6 commit 95cc8ce
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
1 change: 0 additions & 1 deletion spec/routing/catalog_routing_spec.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# frozen_string_literal: true
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')

RSpec.describe "Routing" do
describe "Paths Generated by Custom Routes:" do
Expand Down
8 changes: 8 additions & 0 deletions spec/routing/search_history_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# frozen_string_literal: true

RSpec.describe "Search History Routes" do
# paths generated by custom routes
it "has a path for showing the search history" do
expect(get: "/search_history").to route_to(controller: 'search_history', action: 'index')
end
end

0 comments on commit 95cc8ce

Please sign in to comment.