Sha256: 30bd6c476e667e980ea8e45c02e75a7371238c4ed99059077c139da4eaaea0bd

Contents?: true

Size: 338 Bytes

Versions: 4

Compression:

Stored size: 338 Bytes

Contents

FactoryGirl.define do

  sequence :email do |n|
    "person#{n}@example.com"
  end
  
  factory :user do |f|
    email
    f.password 'test123456'
  end

  factory :client, :class => 'Devise::Oauth2Providable::Client' do |f|
    f.name 'test'
    f.website 'http://localhost'
    f.redirect_uri 'http://localhost:3000'
    user
  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
anjlab-devise-oauth2-providable-1.1.3 spec/factories.rb
anjlab-devise-oauth2-providable-1.1.2 spec/factories.rb
anjlab-devise-oauth2-providable-1.1.1 spec/factories.rb
anjlab-devise-oauth2-providable-1.1.0 spec/factories.rb