Skip to content

Commit

Permalink
Tiny Enumerable cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
ches committed May 6, 2015
1 parent 307fb71 commit 2e7a270
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions spec/integration/users_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,19 +29,11 @@
ROLES.should include relationship.role
end
end

it 'gets the investors that are tagged with the given tag' do
investors = client.user_tags(tag_id, :investor => 'by_residence')

# Get the first investor user profile
user = client.get_user(investors.users[0].id)

# Check his locations tags
location_match = false
user.locations.each do |location|
location_match = true if location.id == tag_id
end
location_match.should == true
user = client.get_user(investors.users.first.id)
user.locations.any? { |loc| loc.id == tag_id }.should be true
end
end

0 comments on commit 2e7a270

Please sign in to comment.