spec/unit/mock_user_spec.rb in warden-github-rails-1.0.1 vs spec/unit/mock_user_spec.rb in warden-github-rails-1.1.0
- old
+ new
@@ -9,10 +9,10 @@
it 'stubs memberships' do
expect(user).not_to be_team_member(123)
expect(user).not_to be_team_member(456)
expect(user).not_to be_organization_member('foobar')
- user.stub_membership(:org => 'foobar', :team => [123, 456])
+ user.stub_membership(org: 'foobar', team: [123, 456])
expect(user).to be_team_member(123)
expect(user).to be_team_member(456)
expect(user).to be_organization_member('foobar')
end