Sha256: 1404bcc8558bf37996abbbe88f46d2897f23966bd5655bab0886a8f3f8236a12
Contents?: true
Size: 842 Bytes
Versions: 17
Compression:
Stored size: 842 Bytes
Contents
gem 'factory_girl', :group => [:development, :test] gem 'factory_girl_rails', :group => [:development, :test] after_bundler do File.open('spec/factories.rb', 'w') {|f| f.write("FactoryGirl.define do end")} factory_user = <<-RB FactoryGirl.define do factory :user do factory_password = Forgery(:basic).password email { Forgery(:internet).email_address } password factory_password password_confirmation factory_password end RB if config['use_devise'] gsub_file 'spec/factories.rb', 'FactoryGirl.define do', factory_user end end __END__ name: Factory Girl description: "Use Factory Girl to replace fixtures" author: jonochang exclusive: fixtures category: testing tags: [fixtures, testing] config: - use_devise: type: boolean prompt: "Add factory for devise user?" if_scroll: devise
Version data entries
17 entries across 17 versions & 3 rubygems