Skip to content

Commit 870109e

Browse files
committed
Fix system spec warning
1 parent 7e11933 commit 870109e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spec/system/snippets_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,12 @@
5454
end
5555

5656
it "can share Snippet" do
57-
snippet = FactoryBot.create(:snippet, author: login_as_user)
57+
FactoryBot.create(:snippet, filename: "example.rb", author: login_as_user)
5858

5959
visit share_snippets_path
6060

6161
within("#snippets") do
62-
expect(page).to have_content(snippet.filename)
62+
expect(page).to have_content("example.rb")
6363
click_link "Share"
6464
end
6565

0 commit comments

Comments
 (0)