spec/support/helpers/model_helper.rb in doorkeeper-1.1.0 vs spec/support/helpers/model_helper.rb in doorkeeper-1.2.0
- old
+ new
@@ -2,11 +2,11 @@
def client_exists(client_attributes = {})
@client = FactoryGirl.create(:application, client_attributes)
end
def create_resource_owner
- @resource_owner = User.create!(:name => "Joe", :password => "sekret")
+ @resource_owner = User.create!(name: 'Joe', password: 'sekret')
end
def authorization_code_exists(options = {})
@authorization = FactoryGirl.create(:access_grant, options)
end
@@ -40,6 +40,6 @@
grant = Doorkeeper::AccessToken.first
expect(grant.scopes).to eq(Doorkeeper::OAuth::Scopes.from_array(args))
end
end
-RSpec.configuration.send :include, ModelHelper, :type => :request
+RSpec.configuration.send :include, ModelHelper, type: :request