Skip to content

Commit

Permalink
Merge pull request #120 from npauzenga/tasks/acceptance-specs-include…
Browse files Browse the repository at this point in the history
…-join-tables

add tests for Group join table creation
  • Loading branch information
npauzenga committed Jan 31, 2016
2 parents 99c35d4 + 740c81d commit 1e4e279
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions spec/acceptance/groups_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,13 @@ def schema_path

expect(json_response["data"]["attributes"]["name"]).
to eq public_send(:name)

expect(authenticated_user.groups.first.name).
to eq public_send(:name)

group = Group.first

expect(group.users.first).to eq authenticated_user
end
end

Expand Down

0 comments on commit 1e4e279

Please sign in to comment.