Skip to content

Commit 68ed6bf

Browse files
committed
Unused map.resources
1 parent 364ccc0 commit 68ed6bf

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

config/routes.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
Rails.application.routes.draw do
2-
resources :messages
32
get '/:list_name/:list_seq', to: 'messages#show'
43
get '/:list_name/', to: 'messages#index'
54

test/system/messages_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class MessagesTest < ApplicationSystemTestCase
1717
end
1818

1919
test 'visiting the search page, and searching a message' do
20-
visit messages_url
20+
visit root_url
2121
assert_selector "h1", text: "blade.ruby-lang.org"
2222

2323
fill_in :q, with: @message1.body

0 commit comments

Comments
 (0)