Skip to content
This repository has been archived by the owner on May 10, 2021. It is now read-only.

Commit

Permalink
add a test for that travel that has been added to the group is displayed
Browse files Browse the repository at this point in the history
  • Loading branch information
y-yagi committed Jun 17, 2015
1 parent cb2a13e commit f908e28
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/integration/travel_integration_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -192,13 +192,16 @@ def setup
current_user = users(:google)
twitter_user = users(:twitter)
other_user_travel = Travel.mine(twitter_user).first

assert_not_includes other_user_travel.members, current_user.id

invite_url = new_travel_member_url(
travel_id: other_user_travel.id, key: other_user_travel.generate_invite_key)
visit invite_url
other_user_travel.reload
assert_includes other_user_travel.members, current_user.id

visit travels_path
assert_match other_user_travel.name, page.text
end

test 'can remove member' do
Expand Down

0 comments on commit f908e28

Please sign in to comment.