spec/support/helpers/model_helper.rb in doorkeeper-2.1.2 vs spec/support/helpers/model_helper.rb in doorkeeper-2.1.3
- old
+ new
@@ -35,10 +35,10 @@
grant = Doorkeeper::AccessGrant.first
expect(grant.scopes).to eq(Doorkeeper::OAuth::Scopes.from_array(args))
end
def access_token_should_have_scopes(*args)
- grant = Doorkeeper::AccessToken.first
+ grant = Doorkeeper::AccessToken.last
expect(grant.scopes).to eq(Doorkeeper::OAuth::Scopes.from_array(args))
end
end
RSpec.configuration.send :include, ModelHelper, type: :request