File tree Expand file tree Collapse file tree 1 file changed +19
-4
lines changed
Expand file tree Collapse file tree 1 file changed +19
-4
lines changed Original file line number Diff line number Diff line change 22
33class MessagesTest < ApplicationSystemTestCase
44 setup do
5- @message = messages ( :message1 )
5+ @message1 = messages ( :message1 )
6+ @message2 = messages ( :message2 )
67 end
78
8- test "visiting the index" do
9- visit messages_url
10- assert_selector "h1" , text : "Messages"
9+ test 'visiting ruby-dev index, and showing a message with an attachment' do
10+ visit '/ruby-dev'
11+ assert_content @message2 . subject
12+
13+ click_link @message2 . subject
14+ assert_content @message2 . body
15+
16+ click_link @message2 . attachments_attachments . first . blob . filename . to_s
1117 end
1218
19+ test 'visiting the search page, and searching a message' do
20+ visit messages_url
21+ assert_selector "h1" , text : "blade.ruby-lang.org"
22+
23+ fill_in :q , with : @message1 . body
24+ click_button 'Search'
25+
26+ assert_content @message1 . subject
27+ end
1328end
You can’t perform that action at this time.
0 commit comments