lib/warden/github/rails/test_helpers/mock_user.rb in warden-github-rails-1.1.0 vs lib/warden/github/rails/test_helpers/mock_user.rb in warden-github-rails-1.1.1

- old
+ new

@@ -10,10 +10,12 @@ @memberships = { team: [], org: [] } end def stub_membership(args) args.each do |type, values| - memberships.fetch(type).concat(Array(values)) + values = Array(values) + values.map!(&:to_i) if type == :team + memberships.fetch(type).concat(values) end end def team_member?(id) memberships[:team].include?(id)