fix an errored test

This commit is contained in:
Robert Richter 2016-08-26 14:33:19 -05:00
parent 8f6cc0ee3a
commit e596dc6f04
No known key found for this signature in database
GPG Key ID: BEC39BF873A0103B

View File

@ -2,7 +2,7 @@ require 'test_helper'
# Tests scenarios related to interacting with Locations
class LocationStoriesTest < ActionDispatch::IntegrationTest
setup do
@user = log_in_as_user
@location = create(:location, user: @user)
@ -18,7 +18,7 @@ class LocationStoriesTest < ActionDispatch::IntegrationTest
test 'location list edit button edits location' do
visit location_path(@location)
click_on 'Edit this location'
assert_equal edit_path(@location), current_path
assert_equal edit_location_path(@location), current_path
end
test 'location list view button shows location' do