Skip to content

Commit

Permalink
[#186] Update accountless story creation test
Browse files Browse the repository at this point in the history
  • Loading branch information
noahko96 committed May 19, 2022
1 parent 9ef2d65 commit 0dfaf1b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions spec/features/adventure_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -238,10 +238,11 @@
end
end

it "lets you create a story" do
it "redirects you to the log in page if you attempt to create a story" do
visit "/"
click_on "Create a Story"
expect(page).to have_content("What's your title?")
expect(page).to have_content("You must be logged in to create a story.")
expect(page.current_path).to eq('/users/sign_in')
end

it "does not let you view /mine" do
Expand Down

0 comments on commit 0dfaf1b

Please sign in to comment.