factory_bot_rails 1.0.0.alpha
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Appraisals +21 -0
- data/CONTRIBUTING.md +39 -0
- data/Gemfile +20 -0
- data/Gemfile.lock +144 -0
- data/LICENSE +19 -0
- data/NEWS +24 -0
- data/README.md +94 -0
- data/Rakefile +24 -0
- data/bin/setup +16 -0
- data/factory_bot_rails-1.0.0.gem +0 -0
- data/factory_bot_rails.gemspec +20 -0
- data/factory_girl_rails.gemspec +20 -0
- data/features/fixture_replacement_config.feature +132 -0
- data/features/generators.feature +54 -0
- data/features/load_definitions.feature +85 -0
- data/features/step_definitions/appraisal.rb +5 -0
- data/features/step_definitions/rails_steps.rb +42 -0
- data/features/support/env.rb +21 -0
- data/gemfiles/rails3.2.gemfile +22 -0
- data/gemfiles/rails3.2.gemfile.lock +177 -0
- data/gemfiles/rails4.1.gemfile +23 -0
- data/gemfiles/rails4.1.gemfile.lock +175 -0
- data/gemfiles/rails4.2.gemfile +21 -0
- data/gemfiles/rails4.2.gemfile.lock +190 -0
- data/gemfiles/rails5.0.gemfile +22 -0
- data/gemfiles/rails5.0.gemfile.lock +153 -0
- data/lib/factory_bot_rails.rb +4 -0
- data/lib/factory_bot_rails/generator.rb +43 -0
- data/lib/factory_bot_rails/generators/non_rspec_generator.rb +19 -0
- data/lib/factory_bot_rails/generators/null_generator.rb +11 -0
- data/lib/factory_bot_rails/generators/rspec_generator.rb +23 -0
- data/lib/factory_bot_rails/railtie.rb +28 -0
- data/lib/generators/factory_bot.rb +15 -0
- data/lib/generators/factory_bot/model/model_generator.rb +99 -0
- data/tmp/aruba/testapp/Gemfile +50 -0
- data/tmp/aruba/testapp/Gemfile.lock +188 -0
- data/tmp/aruba/testapp/README.md +24 -0
- data/tmp/aruba/testapp/Rakefile +6 -0
- data/tmp/aruba/testapp/app/assets/config/manifest.js +3 -0
- data/tmp/aruba/testapp/app/assets/javascripts/application.js +16 -0
- data/tmp/aruba/testapp/app/assets/javascripts/cable.js +13 -0
- data/tmp/aruba/testapp/app/assets/stylesheets/application.css +15 -0
- data/tmp/aruba/testapp/app/channels/application_cable/channel.rb +4 -0
- data/tmp/aruba/testapp/app/channels/application_cable/connection.rb +4 -0
- data/tmp/aruba/testapp/app/controllers/application_controller.rb +3 -0
- data/tmp/aruba/testapp/app/helpers/application_helper.rb +2 -0
- data/tmp/aruba/testapp/app/jobs/application_job.rb +2 -0
- data/tmp/aruba/testapp/app/mailers/application_mailer.rb +4 -0
- data/tmp/aruba/testapp/app/models/application_record.rb +3 -0
- data/tmp/aruba/testapp/app/models/user.rb +2 -0
- data/tmp/aruba/testapp/app/views/layouts/application.html.erb +14 -0
- data/tmp/aruba/testapp/app/views/layouts/mailer.html.erb +13 -0
- data/tmp/aruba/testapp/app/views/layouts/mailer.text.erb +1 -0
- data/tmp/aruba/testapp/bin/bundle +3 -0
- data/tmp/aruba/testapp/bin/rails +9 -0
- data/tmp/aruba/testapp/bin/rake +9 -0
- data/tmp/aruba/testapp/bin/setup +34 -0
- data/tmp/aruba/testapp/bin/spring +17 -0
- data/tmp/aruba/testapp/bin/update +29 -0
- data/tmp/aruba/testapp/config.ru +5 -0
- data/tmp/aruba/testapp/config/application.rb +16 -0
- data/tmp/aruba/testapp/config/boot.rb +3 -0
- data/tmp/aruba/testapp/config/cable.yml +9 -0
- data/tmp/aruba/testapp/config/database.yml +25 -0
- data/tmp/aruba/testapp/config/environment.rb +5 -0
- data/tmp/aruba/testapp/config/environments/development.rb +54 -0
- data/tmp/aruba/testapp/config/environments/production.rb +86 -0
- data/tmp/aruba/testapp/config/environments/test.rb +42 -0
- data/tmp/aruba/testapp/config/initializers/application_controller_renderer.rb +6 -0
- data/tmp/aruba/testapp/config/initializers/assets.rb +11 -0
- data/tmp/aruba/testapp/config/initializers/backtrace_silencers.rb +7 -0
- data/tmp/aruba/testapp/config/initializers/cookies_serializer.rb +5 -0
- data/tmp/aruba/testapp/config/initializers/filter_parameter_logging.rb +4 -0
- data/tmp/aruba/testapp/config/initializers/inflections.rb +16 -0
- data/tmp/aruba/testapp/config/initializers/mime_types.rb +4 -0
- data/tmp/aruba/testapp/config/initializers/new_framework_defaults.rb +24 -0
- data/tmp/aruba/testapp/config/initializers/session_store.rb +3 -0
- data/tmp/aruba/testapp/config/initializers/wrap_parameters.rb +14 -0
- data/tmp/aruba/testapp/config/locales/en.yml +23 -0
- data/tmp/aruba/testapp/config/puma.rb +47 -0
- data/tmp/aruba/testapp/config/routes.rb +3 -0
- data/tmp/aruba/testapp/config/secrets.yml +22 -0
- data/tmp/aruba/testapp/config/spring.rb +6 -0
- data/tmp/aruba/testapp/db/development.sqlite3 +0 -0
- data/tmp/aruba/testapp/db/migrate/1_create_users.rb +7 -0
- data/tmp/aruba/testapp/db/schema.rb +19 -0
- data/tmp/aruba/testapp/db/seeds.rb +7 -0
- data/tmp/aruba/testapp/db/test.sqlite3 +0 -0
- data/tmp/aruba/testapp/lib/some_railtie/factories.rb +5 -0
- data/tmp/aruba/testapp/lib/some_railtie/railties.rb +8 -0
- data/tmp/aruba/testapp/log/development.log +16 -0
- data/tmp/aruba/testapp/log/test.log +21 -0
- data/tmp/aruba/testapp/public/404.html +67 -0
- data/tmp/aruba/testapp/public/422.html +67 -0
- data/tmp/aruba/testapp/public/500.html +66 -0
- data/tmp/aruba/testapp/public/apple-touch-icon-precomposed.png +0 -0
- data/tmp/aruba/testapp/public/apple-touch-icon.png +0 -0
- data/tmp/aruba/testapp/public/favicon.ico +0 -0
- data/tmp/aruba/testapp/public/robots.txt +5 -0
- data/tmp/aruba/testapp/test/test_helper.rb +10 -0
- data/tmp/aruba/testapp/test/unit/user_test.rb +8 -0
- metadata +176 -0
@@ -0,0 +1,132 @@
|
|
1
|
+
Feature:
|
2
|
+
In order to not have to manually configure Factory Bot as the Rails testing fixture replacement by using the --fixture-replacement=factory_bot option
|
3
|
+
I would like the Factory Bot Rails gem to configure Factory Bot as the fixture replacement.
|
4
|
+
|
5
|
+
Background:
|
6
|
+
Given I successfully run `bundle exec rails new testapp`
|
7
|
+
And I cd to "testapp"
|
8
|
+
And I add "factory_bot_rails" from this project as a dependency
|
9
|
+
|
10
|
+
Scenario: Using Factory Bot and Factory Bot Rails with Test Unit generates a factory file and does not generate a fixture file
|
11
|
+
And I run `bundle install` with a clean environment
|
12
|
+
And I run `bundle exec rails generate model User name:string` with a clean environment
|
13
|
+
Then the following files should exist:
|
14
|
+
| test/factories/users.rb |
|
15
|
+
And the following files should not exist:
|
16
|
+
| test/fixtures/users.yml |
|
17
|
+
|
18
|
+
Scenario: Using Factory Bot and Factory Bot Rails with RSpec should generate a factory file
|
19
|
+
When I add "rspec-rails" as a dependency
|
20
|
+
And I configure the factories as:
|
21
|
+
"""
|
22
|
+
config.generators do |g|
|
23
|
+
g.test_framework :rspec, fixture: true
|
24
|
+
g.fixture_replacement :factory_bot
|
25
|
+
end
|
26
|
+
"""
|
27
|
+
And I run `bundle install` with a clean environment
|
28
|
+
Then the output should contain "rspec-rails"
|
29
|
+
And I run `bundle exec rails generate model User name:string` with a clean environment
|
30
|
+
Then the following files should exist:
|
31
|
+
| spec/factories/users.rb |
|
32
|
+
And the following files should not exist:
|
33
|
+
| spec/fixtures/users.yml |
|
34
|
+
|
35
|
+
Scenario: Using Factory Bot and Factory Bot Rails with RSpec and suffix configuration should generate a factory file with suffix
|
36
|
+
When I add "rspec-rails" as a dependency
|
37
|
+
And I configure the factories as:
|
38
|
+
"""
|
39
|
+
config.generators do |g|
|
40
|
+
g.test_framework :rspec, fixture: true
|
41
|
+
g.fixture_replacement :factory_bot, suffix: 'factory'
|
42
|
+
end
|
43
|
+
"""
|
44
|
+
And I run `bundle install` with a clean environment
|
45
|
+
Then the output should contain "rspec-rails"
|
46
|
+
And I run `bundle exec rails generate model User name:string` with a clean environment
|
47
|
+
Then the following files should exist:
|
48
|
+
| spec/factories/users_factory.rb |
|
49
|
+
And the following files should not exist:
|
50
|
+
| spec/fixtures/users.yml |
|
51
|
+
|
52
|
+
Scenario: Using Factory Bot and Factory Bot Rails does not override a manually-configured factories directory using RSpec
|
53
|
+
When I add "rspec-rails" as a dependency
|
54
|
+
And I configure the factories directory as "custom/dir"
|
55
|
+
And I run `bundle install` with a clean environment
|
56
|
+
Then the output should contain "rspec-rails"
|
57
|
+
And I run `bundle exec rails generate model User name:string` with a clean environment
|
58
|
+
Then the following files should not exist:
|
59
|
+
| test/factories/users.rb |
|
60
|
+
| spec/factories/users.rb |
|
61
|
+
But the following files should exist:
|
62
|
+
| custom/dir/users.rb |
|
63
|
+
|
64
|
+
Scenario: Using Factory Bot and Factory Bot Rails does not override a manually-configured factories directory using Test::Unit
|
65
|
+
When I configure the factories directory as "custom/dir"
|
66
|
+
And I run `bundle install` with a clean environment
|
67
|
+
And I run `bundle exec rails generate model User name:string` with a clean environment
|
68
|
+
Then the following files should not exist:
|
69
|
+
| test/factories/users.rb |
|
70
|
+
| spec/factories/users.rb |
|
71
|
+
But the following files should exist:
|
72
|
+
| custom/dir/users.rb |
|
73
|
+
|
74
|
+
Scenario: Using Factory Bot Rails with MiniTest should generate a factory file
|
75
|
+
When I run `bundle install` with a clean environment
|
76
|
+
And I run `bundle exec rails generate model User name:string` with a clean environment
|
77
|
+
Then the following files should exist:
|
78
|
+
| test/factories/users.rb |
|
79
|
+
But the following files should not exist:
|
80
|
+
| spec/fixtures/users.yml |
|
81
|
+
|
82
|
+
Scenario: Using Factory Bot Rails with MiniTest and a custom directory should generate a factory file
|
83
|
+
When I configure the factories directory as "custom/dir"
|
84
|
+
And I run `bundle install` with a clean environment
|
85
|
+
And I run `bundle exec rails generate model User name:string` with a clean environment
|
86
|
+
Then the following files should exist:
|
87
|
+
| custom/dir/users.rb |
|
88
|
+
But the following files should not exist:
|
89
|
+
| spec/fixtures/users.yml |
|
90
|
+
|
91
|
+
Scenario: Disable Factory Bot generator
|
92
|
+
When I configure the factories as:
|
93
|
+
"""
|
94
|
+
config.generators do |g|
|
95
|
+
g.factory_bot false
|
96
|
+
end
|
97
|
+
"""
|
98
|
+
And I run `bundle install` with a clean environment
|
99
|
+
And I run `bundle exec rails generate model User name:string` with a clean environment
|
100
|
+
Then the following files should not exist:
|
101
|
+
| test/factories/users.rb |
|
102
|
+
| spec/factories/users.rb |
|
103
|
+
|
104
|
+
Scenario: Use a suffix with the Factory Bot generator
|
105
|
+
When I add "rspec-rails" as a dependency
|
106
|
+
When I configure the factories as:
|
107
|
+
"""
|
108
|
+
config.generators do |g|
|
109
|
+
g.factory_bot suffix: 'suffix'
|
110
|
+
end
|
111
|
+
"""
|
112
|
+
And I run `bundle install` with a clean environment
|
113
|
+
And I run `bundle exec rails generate model User name:string` with a clean environment
|
114
|
+
Then the following files should exist:
|
115
|
+
| spec/factories/users_suffix.rb |
|
116
|
+
Then the following files should not exist:
|
117
|
+
| spec/factories/users.rb |
|
118
|
+
|
119
|
+
Scenario: Use a filename_proc with the Factory Bot generator
|
120
|
+
When I add "rspec-rails" as a dependency
|
121
|
+
When I configure the factories as:
|
122
|
+
"""
|
123
|
+
config.generators do |g|
|
124
|
+
g.factory_bot filename_proc: Proc.new { |tb| "prefix_#{tb.singularize}_suffix" }
|
125
|
+
end
|
126
|
+
"""
|
127
|
+
And I run `bundle install` with a clean environment
|
128
|
+
And I run `bundle exec rails generate model User name:string` with a clean environment
|
129
|
+
Then the following files should exist:
|
130
|
+
| spec/factories/prefix_user_suffix.rb |
|
131
|
+
Then the following files should not exist:
|
132
|
+
| spec/factories/users.rb |
|
@@ -0,0 +1,54 @@
|
|
1
|
+
Feature:
|
2
|
+
In order to easily generate factory files instead of fixture files when generating models
|
3
|
+
As a user of Rails and Factory Bot
|
4
|
+
I would like to use factory_bot_rails generators.
|
5
|
+
|
6
|
+
Background:
|
7
|
+
Given I successfully run `bundle exec rails new testapp`
|
8
|
+
And I cd to "testapp"
|
9
|
+
And I add "factory_bot_rails" from this project as a dependency
|
10
|
+
|
11
|
+
Scenario: The factory_bot_rails generators create a factory file for each model if there is not a factories.rb file
|
12
|
+
When I run `bundle install` with a clean environment
|
13
|
+
And I run `bundle exec rails generate model User name:string age:integer` with a clean environment
|
14
|
+
And I run `bundle exec rails generate model Namespaced::User name:string` with a clean environment
|
15
|
+
Then the output should contain "test/factories/users.rb"
|
16
|
+
And the output should contain "test/factories/namespaced_users.rb"
|
17
|
+
And the file "test/factories/users.rb" should contain exactly:
|
18
|
+
"""
|
19
|
+
FactoryBot.define do
|
20
|
+
factory :user do
|
21
|
+
name "MyString"
|
22
|
+
age 1
|
23
|
+
end
|
24
|
+
end
|
25
|
+
|
26
|
+
"""
|
27
|
+
And the file "test/factories/namespaced_users.rb" should contain "factory :namespaced_user, class: 'Namespaced::User' do"
|
28
|
+
|
29
|
+
Scenario: The factory_bot_rails generators add a factory in the correct spot
|
30
|
+
When I run `bundle install` with a clean environment
|
31
|
+
And I write to "test/factories.rb" with:
|
32
|
+
"""
|
33
|
+
FactoryBot.define do
|
34
|
+
end
|
35
|
+
"""
|
36
|
+
And I run `bundle exec rails generate model User name:string` with a clean environment
|
37
|
+
Then the file "test/factories.rb" should contain exactly:
|
38
|
+
"""
|
39
|
+
FactoryBot.define do
|
40
|
+
factory :user do
|
41
|
+
name "MyString"
|
42
|
+
end
|
43
|
+
end
|
44
|
+
"""
|
45
|
+
|
46
|
+
Scenario: The factory_bot_rails generators does not create a factory file for each model if there is a factories.rb file in the test directory
|
47
|
+
When I run `bundle install` with a clean environment
|
48
|
+
And I write to "test/factories.rb" with:
|
49
|
+
"""
|
50
|
+
FactoryBot.define do
|
51
|
+
end
|
52
|
+
"""
|
53
|
+
And I run `bundle exec rails generate model User name:string` with a clean environment
|
54
|
+
Then the file "test/factories.rb" should contain "factory :user do"
|
@@ -0,0 +1,85 @@
|
|
1
|
+
Feature: automatically load step definitions
|
2
|
+
|
3
|
+
Background:
|
4
|
+
When I successfully run `bundle exec rails new testapp`
|
5
|
+
And I cd to "testapp"
|
6
|
+
And I add "factory_bot_rails" from this project as a dependency
|
7
|
+
And I add "test-unit" as a dependency
|
8
|
+
And I run `bundle install` with a clean environment
|
9
|
+
And I write to "db/migrate/1_create_users.rb" with:
|
10
|
+
"""
|
11
|
+
class CreateUsers < ActiveRecord::Migration
|
12
|
+
def self.up
|
13
|
+
create_table :users do |t|
|
14
|
+
t.string :name
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
"""
|
19
|
+
When I run `bundle exec rake db:migrate` with a clean environment
|
20
|
+
And I write to "app/models/user.rb" with:
|
21
|
+
"""
|
22
|
+
class User < ActiveRecord::Base
|
23
|
+
end
|
24
|
+
"""
|
25
|
+
|
26
|
+
Scenario: generate a Rails application and use factory definitions
|
27
|
+
When I write to "test/factories.rb" with:
|
28
|
+
"""
|
29
|
+
FactoryBot.define do
|
30
|
+
factory :user do
|
31
|
+
name "Frank"
|
32
|
+
end
|
33
|
+
end
|
34
|
+
"""
|
35
|
+
When I write to "test/unit/user_test.rb" with:
|
36
|
+
"""
|
37
|
+
require 'test_helper'
|
38
|
+
|
39
|
+
class UserTest < ActiveSupport::TestCase
|
40
|
+
test "use factory" do
|
41
|
+
user = FactoryBot.create(:user)
|
42
|
+
assert_equal 'Frank', user.name
|
43
|
+
end
|
44
|
+
end
|
45
|
+
"""
|
46
|
+
When I run `bundle exec rake test` with a clean environment
|
47
|
+
Then the output should contain "1 assertions, 0 failures, 0 errors"
|
48
|
+
|
49
|
+
Scenario: use factories advertised by railties/engines/3rd-party gems
|
50
|
+
When I append to "config/application.rb" with:
|
51
|
+
"""
|
52
|
+
require File.expand_path('../../lib/some_railtie/railties.rb', __FILE__)
|
53
|
+
"""
|
54
|
+
When I write to "lib/some_railtie/railties.rb" with:
|
55
|
+
"""
|
56
|
+
module SomeRailtie
|
57
|
+
class Railtie < ::Rails::Engine
|
58
|
+
|
59
|
+
initializer "some_railtie.factories", :after => "factory_bot.set_factory_paths" do
|
60
|
+
FactoryBot.definition_file_paths << File.expand_path('../factories', __FILE__)
|
61
|
+
end
|
62
|
+
end
|
63
|
+
end
|
64
|
+
"""
|
65
|
+
When I write to "lib/some_railtie/factories.rb" with:
|
66
|
+
"""
|
67
|
+
FactoryBot.define do
|
68
|
+
factory :factory_from_some_railtie, class: 'User' do
|
69
|
+
name 'Artem'
|
70
|
+
end
|
71
|
+
end
|
72
|
+
"""
|
73
|
+
When I write to "test/unit/user_test.rb" with:
|
74
|
+
"""
|
75
|
+
require 'test_helper'
|
76
|
+
|
77
|
+
class UserTest < ActiveSupport::TestCase
|
78
|
+
test "use factory of some_railtie" do
|
79
|
+
user = FactoryBot.create(:factory_from_some_railtie)
|
80
|
+
assert_equal 'Artem', user.name
|
81
|
+
end
|
82
|
+
end
|
83
|
+
"""
|
84
|
+
When I run `bundle exec rake test` with a clean environment
|
85
|
+
Then the output should contain "1 assertions, 0 failures, 0 errors"
|
@@ -0,0 +1,42 @@
|
|
1
|
+
When /^I add "([^"]+)" from this project as a dependency$/ do |gem_name|
|
2
|
+
append_to_file('Gemfile', %{gem "#{gem_name}", :path => "#{PROJECT_ROOT}"\n})
|
3
|
+
end
|
4
|
+
|
5
|
+
When /^I add "([^"]+)" as a dependency$/ do |gem_name|
|
6
|
+
append_to_file('Gemfile', %{gem "#{gem_name}"\n})
|
7
|
+
end
|
8
|
+
|
9
|
+
When /^I print out "([^"]*)"$/ do |path|
|
10
|
+
in_current_dir do
|
11
|
+
File.open(path, 'r') do |f|
|
12
|
+
puts f.inspect
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
16
|
+
|
17
|
+
When /^I configure the factories as:$/ do |string|
|
18
|
+
append_to_file File.join('config', 'application.rb'), <<-END
|
19
|
+
class Testapp::Application
|
20
|
+
#{string}
|
21
|
+
end
|
22
|
+
END
|
23
|
+
end
|
24
|
+
|
25
|
+
When /^I configure the factories directory as "([^"]+)"$/ do |factory_dir|
|
26
|
+
append_to_file File.join('config', 'application.rb'), <<-END
|
27
|
+
class Testapp::Application
|
28
|
+
config.generators do |g|
|
29
|
+
g.fixture_replacement :factory_bot, :dir => "#{factory_dir}"
|
30
|
+
end
|
31
|
+
end
|
32
|
+
END
|
33
|
+
end
|
34
|
+
|
35
|
+
When /^I comment out gem "([^"]*)" from my Gemfile$/ do |gem_name|
|
36
|
+
in_current_dir do
|
37
|
+
content = File.read('Gemfile')
|
38
|
+
File.open('Gemfile', 'w') do |f|
|
39
|
+
f.write content.sub(/gem ['"]#{gem_name}/, '#\1')
|
40
|
+
end
|
41
|
+
end
|
42
|
+
end
|
@@ -0,0 +1,21 @@
|
|
1
|
+
require 'aruba/cucumber'
|
2
|
+
|
3
|
+
PROJECT_ROOT = File.expand_path(File.join(File.dirname(__FILE__), '..', '..')).freeze
|
4
|
+
|
5
|
+
Aruba.configure do |config|
|
6
|
+
config.exit_timeout = Integer ENV.fetch("ARUBA_TIMEOUT") { 120 }
|
7
|
+
end
|
8
|
+
|
9
|
+
Aruba.configure do |config|
|
10
|
+
config.before_cmd do |cmd|
|
11
|
+
set_env('JRUBY_OPTS', "-X-C #{ENV['JRUBY_OPTS']}") # disable JIT since these processes are so short lived
|
12
|
+
|
13
|
+
java_options = ENV['JAVA_OPTS']
|
14
|
+
|
15
|
+
if 1.size == 4 # 4 for 32 bit java, 8 for 64 bit java.
|
16
|
+
set_env('JAVA_OPTS', "-d32 #{java_options}")
|
17
|
+
else
|
18
|
+
set_env('JAVA_OPTS', "-XX:+TieredCompilation -XX:TieredStopAtLevel=1 #{java_options}")
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end if RUBY_PLATFORM == 'java'
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# This file was generated by Appraisal
|
2
|
+
|
3
|
+
source "https://rubygems.org"
|
4
|
+
|
5
|
+
gem "appraisal"
|
6
|
+
gem "aruba"
|
7
|
+
gem "coffee-rails"
|
8
|
+
gem "cucumber", "1.3.19"
|
9
|
+
gem "jquery-rails"
|
10
|
+
gem "rake"
|
11
|
+
gem "rspec-rails"
|
12
|
+
gem "uglifier"
|
13
|
+
gem "test-unit"
|
14
|
+
gem "activerecord-jdbcsqlite3-adapter", :platforms => :jruby
|
15
|
+
gem "jdbc-sqlite3", :platforms => :jruby
|
16
|
+
gem "therubyrhino", :platforms => :jruby
|
17
|
+
gem "jruby-openssl", :platforms => :jruby
|
18
|
+
gem "sqlite3", :platforms => :ruby
|
19
|
+
gem "rails", "~> 3.2.21"
|
20
|
+
gem "sass-rails"
|
21
|
+
|
22
|
+
gemspec :path => "../", :name => "factory_bot_rails"
|
@@ -0,0 +1,177 @@
|
|
1
|
+
PATH
|
2
|
+
remote: ../
|
3
|
+
specs:
|
4
|
+
factory_bot_rails (1.0.0)
|
5
|
+
factory_bot (~> 1.0.0)
|
6
|
+
railties (>= 3.0.0)
|
7
|
+
|
8
|
+
GEM
|
9
|
+
remote: https://rubygems.org/
|
10
|
+
specs:
|
11
|
+
actionmailer (3.2.22.5)
|
12
|
+
actionpack (= 3.2.22.5)
|
13
|
+
mail (~> 2.5.4)
|
14
|
+
actionpack (3.2.22.5)
|
15
|
+
activemodel (= 3.2.22.5)
|
16
|
+
activesupport (= 3.2.22.5)
|
17
|
+
builder (~> 3.0.0)
|
18
|
+
erubis (~> 2.7.0)
|
19
|
+
journey (~> 1.0.4)
|
20
|
+
rack (~> 1.4.5)
|
21
|
+
rack-cache (~> 1.2)
|
22
|
+
rack-test (~> 0.6.1)
|
23
|
+
sprockets (~> 2.2.1)
|
24
|
+
activemodel (3.2.22.5)
|
25
|
+
activesupport (= 3.2.22.5)
|
26
|
+
builder (~> 3.0.0)
|
27
|
+
activerecord (3.2.22.5)
|
28
|
+
activemodel (= 3.2.22.5)
|
29
|
+
activesupport (= 3.2.22.5)
|
30
|
+
arel (~> 3.0.2)
|
31
|
+
tzinfo (~> 0.3.29)
|
32
|
+
activeresource (3.2.22.5)
|
33
|
+
activemodel (= 3.2.22.5)
|
34
|
+
activesupport (= 3.2.22.5)
|
35
|
+
activesupport (3.2.22.5)
|
36
|
+
i18n (~> 0.6, >= 0.6.4)
|
37
|
+
multi_json (~> 1.0)
|
38
|
+
appraisal (2.1.0)
|
39
|
+
bundler
|
40
|
+
rake
|
41
|
+
thor (>= 0.14.0)
|
42
|
+
arel (3.0.3)
|
43
|
+
aruba (0.14.2)
|
44
|
+
childprocess (~> 0.5.6)
|
45
|
+
contracts (~> 0.9)
|
46
|
+
cucumber (>= 1.3.19)
|
47
|
+
ffi (~> 1.9.10)
|
48
|
+
rspec-expectations (>= 2.99)
|
49
|
+
thor (~> 0.19)
|
50
|
+
builder (3.0.4)
|
51
|
+
childprocess (0.5.9)
|
52
|
+
ffi (~> 1.0, >= 1.0.11)
|
53
|
+
coffee-rails (3.2.2)
|
54
|
+
coffee-script (>= 2.2.0)
|
55
|
+
railties (~> 3.2.0)
|
56
|
+
coffee-script (2.4.1)
|
57
|
+
coffee-script-source
|
58
|
+
execjs
|
59
|
+
coffee-script-source (1.11.1)
|
60
|
+
contracts (0.14.0)
|
61
|
+
cucumber (1.3.19)
|
62
|
+
builder (>= 2.1.2)
|
63
|
+
diff-lcs (>= 1.1.3)
|
64
|
+
gherkin (~> 2.12)
|
65
|
+
multi_json (>= 1.7.5, < 2.0)
|
66
|
+
multi_test (>= 0.1.2)
|
67
|
+
diff-lcs (1.2.5)
|
68
|
+
erubis (2.7.0)
|
69
|
+
execjs (2.7.0)
|
70
|
+
factory_bot (1.0.0)
|
71
|
+
activesupport (>= 3.0.0)
|
72
|
+
ffi (1.9.14)
|
73
|
+
gherkin (2.12.2)
|
74
|
+
multi_json (~> 1.3)
|
75
|
+
hike (1.2.3)
|
76
|
+
i18n (0.7.0)
|
77
|
+
journey (1.0.4)
|
78
|
+
jquery-rails (3.1.4)
|
79
|
+
railties (>= 3.0, < 5.0)
|
80
|
+
thor (>= 0.14, < 2.0)
|
81
|
+
json (1.8.3)
|
82
|
+
mail (2.5.4)
|
83
|
+
mime-types (~> 1.16)
|
84
|
+
treetop (~> 1.4.8)
|
85
|
+
mime-types (1.25.1)
|
86
|
+
multi_json (1.12.1)
|
87
|
+
multi_test (0.1.2)
|
88
|
+
polyglot (0.3.5)
|
89
|
+
power_assert (0.4.1)
|
90
|
+
rack (1.4.7)
|
91
|
+
rack-cache (1.6.1)
|
92
|
+
rack (>= 0.4)
|
93
|
+
rack-ssl (1.3.4)
|
94
|
+
rack
|
95
|
+
rack-test (0.6.3)
|
96
|
+
rack (>= 1.0)
|
97
|
+
rails (3.2.22.5)
|
98
|
+
actionmailer (= 3.2.22.5)
|
99
|
+
actionpack (= 3.2.22.5)
|
100
|
+
activerecord (= 3.2.22.5)
|
101
|
+
activeresource (= 3.2.22.5)
|
102
|
+
activesupport (= 3.2.22.5)
|
103
|
+
bundler (~> 1.0)
|
104
|
+
railties (= 3.2.22.5)
|
105
|
+
railties (3.2.22.5)
|
106
|
+
actionpack (= 3.2.22.5)
|
107
|
+
activesupport (= 3.2.22.5)
|
108
|
+
rack-ssl (~> 1.3.2)
|
109
|
+
rake (>= 0.8.7)
|
110
|
+
rdoc (~> 3.4)
|
111
|
+
thor (>= 0.14.6, < 2.0)
|
112
|
+
rake (11.3.0)
|
113
|
+
rdoc (3.12.2)
|
114
|
+
json (~> 1.4)
|
115
|
+
rspec-core (3.5.4)
|
116
|
+
rspec-support (~> 3.5.0)
|
117
|
+
rspec-expectations (3.5.0)
|
118
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
119
|
+
rspec-support (~> 3.5.0)
|
120
|
+
rspec-mocks (3.5.0)
|
121
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
122
|
+
rspec-support (~> 3.5.0)
|
123
|
+
rspec-rails (3.5.2)
|
124
|
+
actionpack (>= 3.0)
|
125
|
+
activesupport (>= 3.0)
|
126
|
+
railties (>= 3.0)
|
127
|
+
rspec-core (~> 3.5.0)
|
128
|
+
rspec-expectations (~> 3.5.0)
|
129
|
+
rspec-mocks (~> 3.5.0)
|
130
|
+
rspec-support (~> 3.5.0)
|
131
|
+
rspec-support (3.5.0)
|
132
|
+
sass (3.4.22)
|
133
|
+
sass-rails (3.2.6)
|
134
|
+
railties (~> 3.2.0)
|
135
|
+
sass (>= 3.1.10)
|
136
|
+
tilt (~> 1.3)
|
137
|
+
sprockets (2.2.3)
|
138
|
+
hike (~> 1.2)
|
139
|
+
multi_json (~> 1.0)
|
140
|
+
rack (~> 1.0)
|
141
|
+
tilt (~> 1.1, != 1.3.0)
|
142
|
+
sqlite3 (1.3.12)
|
143
|
+
test-unit (3.2.3)
|
144
|
+
power_assert
|
145
|
+
thor (0.19.4)
|
146
|
+
tilt (1.4.1)
|
147
|
+
treetop (1.4.15)
|
148
|
+
polyglot
|
149
|
+
polyglot (>= 0.3.1)
|
150
|
+
tzinfo (0.3.52)
|
151
|
+
uglifier (3.0.4)
|
152
|
+
execjs (>= 0.3.0, < 3)
|
153
|
+
|
154
|
+
PLATFORMS
|
155
|
+
ruby
|
156
|
+
|
157
|
+
DEPENDENCIES
|
158
|
+
activerecord-jdbcsqlite3-adapter
|
159
|
+
appraisal
|
160
|
+
aruba
|
161
|
+
coffee-rails
|
162
|
+
cucumber (= 1.3.19)
|
163
|
+
factory_bot_rails!
|
164
|
+
jdbc-sqlite3
|
165
|
+
jquery-rails
|
166
|
+
jruby-openssl
|
167
|
+
rails (~> 3.2.21)
|
168
|
+
rake
|
169
|
+
rspec-rails
|
170
|
+
sass-rails
|
171
|
+
sqlite3
|
172
|
+
test-unit
|
173
|
+
therubyrhino
|
174
|
+
uglifier
|
175
|
+
|
176
|
+
BUNDLED WITH
|
177
|
+
1.13.6
|