We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fc52233 commit 042ba55Copy full SHA for 042ba55
test/system/messages_test.rb
@@ -16,9 +16,13 @@ class MessagesTest < ApplicationSystemTestCase
16
click_link @message2.attachments_attachments.first.blob.filename.to_s
17
end
18
19
- test "visiting the index" do
+ test 'visiting the search page, and searching a message' do
20
visit messages_url
21
- assert_selector "h1", text: "Messages"
22
- end
+ assert_selector "h1", text: "blade.ruby-lang.org"
+
23
+ fill_in :q, with: @message1.body
24
+ click_button 'Search'
25
26
+ assert_content @message1.subject
27
+ end
28
0 commit comments