cucumber_factory 1.11.4 → 1.11.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.rspec +1 -0
- data/.ruby-version +1 -1
- data/.travis.yml +42 -0
- data/Gemfile +1 -0
- data/Gemfile.lock +1 -0
- data/{MIT-LICENSE → LICENSE} +1 -1
- data/README.md +158 -0
- data/Rakefile +5 -57
- data/cucumber_factory.gemspec +2 -1
- data/gemfiles/Gemfile.cucumber-1.3 +17 -0
- data/gemfiles/Gemfile.cucumber-1.3.lock +53 -0
- data/gemfiles/Gemfile.cucumber-2.4 +16 -0
- data/gemfiles/Gemfile.cucumber-2.4.lock +84 -0
- data/gemfiles/Gemfile.cucumber-3.0 +16 -0
- data/gemfiles/Gemfile.cucumber-3.0.lock +79 -0
- data/lib/cucumber/factory.rb +13 -4
- data/lib/cucumber_factory.rb +5 -0
- data/lib/cucumber_factory/switcher.rb +9 -3
- data/lib/cucumber_factory/version.rb +1 -1
- data/spec/{shared/cucumber_factory → cucumber_factory}/factory/build_strategy_spec.rb +0 -1
- data/spec/{shared/cucumber_factory → cucumber_factory}/steps_spec.rb +20 -4
- data/spec/spec_helper.rb +12 -0
- data/spec/support/cucumber_helper.rb +35 -0
- data/spec/support/database.rb +30 -0
- data/spec/support/database.sample.yml +5 -0
- data/spec/support/database.travis.yml +4 -0
- data/spec/support/database.yml +5 -0
- data/spec/{shared/support → support}/factory_girl_mock.rb +0 -0
- data/spec/{shared/app_root/app → support}/models/job_offer.rb +0 -0
- data/spec/{shared/app_root/app → support}/models/machinist_model.rb +0 -0
- data/spec/{shared/app_root/app → support}/models/movie.rb +0 -0
- data/spec/{shared/app_root/app → support}/models/opera.rb +0 -0
- data/spec/{shared/app_root/app → support}/models/payment.rb +0 -0
- data/spec/support/models/people/actor.rb +4 -0
- data/spec/{shared/app_root/app → support}/models/plain_ruby_class.rb +0 -0
- data/spec/{shared/app_root/app → support}/models/user.rb +0 -0
- metadata +59 -117
- data/README.rdoc +0 -103
- data/spec/app_root/log/.keep +0 -0
- data/spec/rails-2.3/Gemfile +0 -10
- data/spec/rails-2.3/Gemfile.lock +0 -70
- data/spec/rails-2.3/Rakefile +0 -11
- data/spec/rails-2.3/app_root/config/boot.rb +0 -129
- data/spec/rails-2.3/app_root/config/database.yml +0 -4
- data/spec/rails-2.3/app_root/config/environment.rb +0 -7
- data/spec/rails-2.3/app_root/config/environments/test.rb +0 -28
- data/spec/rails-2.3/app_root/config/preinitializer.rb +0 -20
- data/spec/rails-2.3/app_root/config/routes.rb +0 -4
- data/spec/rails-2.3/app_root/log/.gitignore +0 -1
- data/spec/rails-2.3/rcov.opts +0 -2
- data/spec/rails-2.3/spec.opts +0 -4
- data/spec/rails-2.3/spec/spec_helper.rb +0 -28
- data/spec/rails-3.0/.rspec +0 -2
- data/spec/rails-3.0/Gemfile +0 -9
- data/spec/rails-3.0/Gemfile.lock +0 -126
- data/spec/rails-3.0/Rakefile +0 -10
- data/spec/rails-3.0/app_root/.gitignore +0 -4
- data/spec/rails-3.0/app_root/config/application.rb +0 -32
- data/spec/rails-3.0/app_root/config/boot.rb +0 -13
- data/spec/rails-3.0/app_root/config/database.yml +0 -4
- data/spec/rails-3.0/app_root/config/environment.rb +0 -5
- data/spec/rails-3.0/app_root/config/environments/test.rb +0 -35
- data/spec/rails-3.0/app_root/config/initializers/backtrace_silencers.rb +0 -7
- data/spec/rails-3.0/app_root/config/initializers/inflections.rb +0 -10
- data/spec/rails-3.0/app_root/config/initializers/mime_types.rb +0 -5
- data/spec/rails-3.0/app_root/config/initializers/secret_token.rb +0 -7
- data/spec/rails-3.0/app_root/config/initializers/session_store.rb +0 -8
- data/spec/rails-3.0/app_root/config/routes.rb +0 -3
- data/spec/rails-3.0/app_root/log/.gitkeep +0 -0
- data/spec/rails-3.0/rcov.opts +0 -2
- data/spec/rails-3.0/spec/spec_helper.rb +0 -25
- data/spec/rails-3.2/.rspec +0 -2
- data/spec/rails-3.2/Gemfile +0 -9
- data/spec/rails-3.2/Gemfile.lock +0 -136
- data/spec/rails-3.2/Rakefile +0 -10
- data/spec/rails-3.2/app_root/.gitignore +0 -4
- data/spec/rails-3.2/app_root/config/application.rb +0 -32
- data/spec/rails-3.2/app_root/config/boot.rb +0 -13
- data/spec/rails-3.2/app_root/config/database.yml +0 -4
- data/spec/rails-3.2/app_root/config/environment.rb +0 -5
- data/spec/rails-3.2/app_root/config/environments/test.rb +0 -35
- data/spec/rails-3.2/app_root/config/initializers/backtrace_silencers.rb +0 -7
- data/spec/rails-3.2/app_root/config/initializers/inflections.rb +0 -10
- data/spec/rails-3.2/app_root/config/initializers/mime_types.rb +0 -5
- data/spec/rails-3.2/app_root/config/initializers/secret_token.rb +0 -7
- data/spec/rails-3.2/app_root/config/initializers/session_store.rb +0 -8
- data/spec/rails-3.2/app_root/config/routes.rb +0 -3
- data/spec/rails-3.2/app_root/log/.gitkeep +0 -0
- data/spec/rails-3.2/rcov.opts +0 -2
- data/spec/rails-3.2/spec/spec_helper.rb +0 -25
- data/spec/rails-4.0/.rspec +0 -2
- data/spec/rails-4.0/Gemfile +0 -9
- data/spec/rails-4.0/Gemfile.lock +0 -114
- data/spec/rails-4.0/Rakefile +0 -10
- data/spec/rails-4.0/app_root/.gitignore +0 -4
- data/spec/rails-4.0/app_root/config/application.rb +0 -31
- data/spec/rails-4.0/app_root/config/boot.rb +0 -13
- data/spec/rails-4.0/app_root/config/database.yml +0 -4
- data/spec/rails-4.0/app_root/config/environment.rb +0 -5
- data/spec/rails-4.0/app_root/config/environments/test.rb +0 -34
- data/spec/rails-4.0/app_root/config/initializers/backtrace_silencers.rb +0 -7
- data/spec/rails-4.0/app_root/config/initializers/inflections.rb +0 -10
- data/spec/rails-4.0/app_root/config/initializers/mime_types.rb +0 -5
- data/spec/rails-4.0/app_root/config/initializers/secret_token.rb +0 -7
- data/spec/rails-4.0/app_root/config/initializers/session_store.rb +0 -8
- data/spec/rails-4.0/app_root/config/locales/en.yml +0 -4
- data/spec/rails-4.0/app_root/config/routes.rb +0 -3
- data/spec/rails-4.0/app_root/log/.gitkeep +0 -0
- data/spec/rails-4.0/rcov.opts +0 -2
- data/spec/rails-4.0/spec/spec_helper.rb +0 -25
- data/spec/shared/app_root/app/controllers/application_controller.rb +0 -2
- data/spec/shared/app_root/app/models/people/actor.rb +0 -2
- data/spec/shared/app_root/config/locales/en.yml +0 -4
- data/spec/shared/app_root/db/migrate/001_create_movies.rb +0 -17
- data/spec/shared/app_root/db/migrate/002_create_users.rb +0 -20
- data/spec/shared/app_root/db/migrate/003_create_payments.rb +0 -14
- data/spec/shared/app_root/db/migrate/004_create_actors.rb +0 -12
- data/spec/shared/cucumber_factory/cucumber_helper.rb +0 -15
- data/spec/shared/cucumber_factory/runtime_ext_spec.rb +0 -33
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 8d8f10ae5adb3556229e785e24b559cd761f1ecd
|
4
|
+
data.tar.gz: 3e8c4c53a51ef62e385c8caf05db1231405617be
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: cf6b455125d7254f9280706f36718a63b1fd2941ba344cac6f40c3374015964cc33283285908b0ace3e60c531b540de6b0949350ae8d6461ae1362180e62f0f1
|
7
|
+
data.tar.gz: 3843bbae65502a56146d7a58aebcba662b37c1ba420e86c04a74c03c798d401f89d443a1c72844956dac08f2b6d91bce52d41ac48518f7b5d7c870028801cae3
|
data/.rspec
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
--color
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
2.3.3
|
data/.travis.yml
ADDED
@@ -0,0 +1,42 @@
|
|
1
|
+
rvm:
|
2
|
+
- 1.8.7
|
3
|
+
- 2.1.10
|
4
|
+
- 2.3.3
|
5
|
+
|
6
|
+
gemfile:
|
7
|
+
- gemfiles/Gemfile.cucumber-1.3
|
8
|
+
- gemfiles/Gemfile.cucumber-2.4
|
9
|
+
- gemfiles/Gemfile.cucumber-3.0
|
10
|
+
|
11
|
+
matrix:
|
12
|
+
exclude:
|
13
|
+
- gemfile: gemfiles/Gemfile.cucumber-3.0
|
14
|
+
rvm: 2.1.10
|
15
|
+
- gemfile: gemfiles/Gemfile.cucumber-3.0
|
16
|
+
rvm: 1.8.7
|
17
|
+
- gemfile: gemfiles/Gemfile.cucumber-2.4
|
18
|
+
rvm: 1.8.7
|
19
|
+
- gemfile: gemfiles/Gemfile.cucumber-1.3
|
20
|
+
rvm: 2.3.3 # doesn't work with old RSpec and activesupport
|
21
|
+
- gemfile: gemfiles/Gemfile.cucumber-1.3
|
22
|
+
rvm: 2.1.10 # doesn't work with old RSpec and activesupport
|
23
|
+
|
24
|
+
install:
|
25
|
+
# Replace default Travis CI bundler script with a version that doesn't
|
26
|
+
# explode when lockfile doesn't match recently bumped version
|
27
|
+
- gem uninstall bundler -x -I
|
28
|
+
- gem install bundler --version='=1.12.5'
|
29
|
+
- bundle install --jobs=3 --retry=3 --path=${BUNDLE_PATH:-vendor/bundle}
|
30
|
+
|
31
|
+
before_script:
|
32
|
+
- mysql -e 'create database IF NOT EXISTS cucumber_factory_test;'
|
33
|
+
|
34
|
+
script: bundle exec rake current_rspec
|
35
|
+
|
36
|
+
sudo: false
|
37
|
+
|
38
|
+
cache: bundler
|
39
|
+
|
40
|
+
notifications:
|
41
|
+
email:
|
42
|
+
- fail@makandra.de
|
data/Gemfile
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
./gemfiles/Gemfile.cucumber-2.4
|
data/Gemfile.lock
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
./gemfiles/Gemfile.cucumber-2.4.lock
|
data/{MIT-LICENSE → LICENSE}
RENAMED
data/README.md
ADDED
@@ -0,0 +1,158 @@
|
|
1
|
+
cucumber_factory [![Build Status](https://travis-ci.org/makandra/cucumber_factory.svg?branch=master)](https://travis-ci.org/makandra/cucumber_factory)
|
2
|
+
================
|
3
|
+
|
4
|
+
Create ActiveRecord objects without step definitions
|
5
|
+
----------------------------------------------------
|
6
|
+
|
7
|
+
cucumber_factory allows you to create ActiveRecord objects directly from your [Cucumber](http://cukes.info/) features. No step definitions required.
|
8
|
+
|
9
|
+
|
10
|
+
Basic usage
|
11
|
+
-----------
|
12
|
+
|
13
|
+
To create a new record with default attributes:
|
14
|
+
|
15
|
+
```cucumber
|
16
|
+
Given there is a movie
|
17
|
+
```
|
18
|
+
|
19
|
+
To create the record, cucumber_factory will call [`Movie.make`](http://github.com/notahat/machinist), [`Factory.create(:movie)`](http://github.com/thoughtbot/factory_girl), [`Movie.create!`](http://apidock.com/rails/ActiveRecord/Persistence/ClassMethods/create%21) or `Movie.new`, depending on what's available.
|
20
|
+
|
21
|
+
To create a new record with attributes set, you can say:
|
22
|
+
|
23
|
+
```cucumber
|
24
|
+
Given there is a movie with the title "Sunshine" and the year "2007"
|
25
|
+
```
|
26
|
+
|
27
|
+
Boolean attributes can be set by appending `which`, `that` or `who` at the end:
|
28
|
+
|
29
|
+
```cucumber
|
30
|
+
Given there is a movie which is awesome
|
31
|
+
And there is a movie with the name "Sunshine" that is not a comedy
|
32
|
+
And there is a director who is popular
|
33
|
+
```
|
34
|
+
|
35
|
+
Instead of `and` you can also use `but` and commas to join sentences:
|
36
|
+
|
37
|
+
```cucumber
|
38
|
+
Given there is a movie which is awesome, popular and successful but not science fiction
|
39
|
+
And there is a director with the income "500000" but with the account balance "-30000"
|
40
|
+
```
|
41
|
+
|
42
|
+
|
43
|
+
Setting associations
|
44
|
+
--------------------
|
45
|
+
|
46
|
+
You can set `belongs_to` associations by referring to the last created record of as `above`:
|
47
|
+
|
48
|
+
```cucumber
|
49
|
+
Given there is a movie with the title "Before Sunrise"
|
50
|
+
And there is a movie with the prequel above
|
51
|
+
```
|
52
|
+
|
53
|
+
The example above also shows how to set `has_many` associations - you simply set the `belongs_to` association on the other side.
|
54
|
+
|
55
|
+
You can also refer to a previously created record using any string attribute used in its creation:
|
56
|
+
|
57
|
+
```cucumber
|
58
|
+
Given there is a movie with the title "Before Sunrise"
|
59
|
+
And there is a movie with the title "Limitless"
|
60
|
+
And there is a movie with the prequel "Before Sunrise"
|
61
|
+
```
|
62
|
+
|
63
|
+
You can also explicitly give a record a name and use it to set a `belongs_to` association below:
|
64
|
+
|
65
|
+
```cucumber
|
66
|
+
Given "Before Sunrise" is a movie
|
67
|
+
And there is a movie with the title "Limitless"
|
68
|
+
And there is a movie with the prequel "Before Sunrise"
|
69
|
+
```
|
70
|
+
|
71
|
+
Note that in the example above, "Before Sunrise" is only a name you can use to refer to the record. The name is not actually used for the movie title, or any other attribute value.
|
72
|
+
|
73
|
+
|
74
|
+
Support for popular factory gems
|
75
|
+
--------------------------------
|
76
|
+
|
77
|
+
[Machinist blueprints](http://github.com/notahat/machinist) and [factory_girl factories](http://github.com/thoughtbot/factory_girl) will be used when available.
|
78
|
+
|
79
|
+
You can use a [FactoryGirl child factory](https://github.com/thoughtbot/factory_girl/blob/master/GETTING_STARTED.md#inheritance) or [Machinist named blueprint](https://github.com/notahat/machinist/tree/1.0-maintenance#named-blueprints) by putting the variant name in parentheses:
|
80
|
+
|
81
|
+
```cucumber
|
82
|
+
Given there is a movie (comedy) with the title "Groundhog Day"
|
83
|
+
```
|
84
|
+
|
85
|
+
You can use [FactoryGirl traits](https://github.com/thoughtbot/factory_girl/blob/master/GETTING_STARTED.md#traits) by putting the traits in parentheses, as a comma-separated list:
|
86
|
+
|
87
|
+
```cucumber
|
88
|
+
Given there is a movie (moody, dark) with the title "Interstellar"
|
89
|
+
```
|
90
|
+
|
91
|
+
|
92
|
+
Overriding factory steps
|
93
|
+
-----------------------
|
94
|
+
|
95
|
+
If you want to override a factory step with your own version, just do so:
|
96
|
+
|
97
|
+
```ruby
|
98
|
+
Given /^there is a movie with good actors$/ do
|
99
|
+
movie = Movie.make
|
100
|
+
movie.actors << Actor.make(:name => 'Clive Owen')
|
101
|
+
movie.actors << Actor.make(:name => 'Denzel Washington')
|
102
|
+
end
|
103
|
+
```
|
104
|
+
|
105
|
+
Custom steps will always be preferred over factory steps. Also Cucumber will not raise a warning about ambiguous steps if the only other matching step is a factory step. Thanks, [cucumber_priority](https://github.com/makandra/cucumber_priority)!
|
106
|
+
|
107
|
+
|
108
|
+
Supported Cucumber versions
|
109
|
+
----------------------------
|
110
|
+
|
111
|
+
cucumber_factory is tested against Cucumber 1.3, 2.4 and 3.0.
|
112
|
+
|
113
|
+
|
114
|
+
Installation
|
115
|
+
------------
|
116
|
+
|
117
|
+
In your `Gemfile` say:
|
118
|
+
|
119
|
+
gem 'cucumber_factory'
|
120
|
+
|
121
|
+
Now create a file `features/step_definitions/factory_steps.rb`, which just says
|
122
|
+
|
123
|
+
Cucumber::Factory.add_steps(self)
|
124
|
+
|
125
|
+
Now run `bundle install` and restart your server.
|
126
|
+
|
127
|
+
|
128
|
+
Development
|
129
|
+
-----------
|
130
|
+
|
131
|
+
There are tests in `spec`. We only accept PRs with tests. To run tests:
|
132
|
+
|
133
|
+
- Install Ruby 2.3.3
|
134
|
+
- Create a local MySQL database `cucumber_factory_test`
|
135
|
+
- Copy `spec/support/database.sample.yml` to `spec/support/database.yml` and enter your local credentials for the test databases
|
136
|
+
- Install development dependencies using `bundle install`
|
137
|
+
- Run tests using `bundle exec rspec`
|
138
|
+
|
139
|
+
We recommend to test large changes against multiple versions of Ruby and multiple dependency sets. Supported combinations are configured in `.travis.yml`. We provide some rake tasks to help with this:
|
140
|
+
|
141
|
+
- Install development dependencies using `bundle matrix:install`
|
142
|
+
- Run tests using `bundle matrix:spec`
|
143
|
+
|
144
|
+
Note that we have configured Travis CI to automatically run tests in all supported Ruby versions and dependency sets after each push. We will only merge pull requests after a green Travis build.
|
145
|
+
|
146
|
+
If you would like to contribute:
|
147
|
+
|
148
|
+
- Fork the repository.
|
149
|
+
- Push your changes **with passing specs**.
|
150
|
+
- Send us a pull request.
|
151
|
+
|
152
|
+
I'm very eager to keep this gem leightweight and on topic. If you're unsure whether a change would make it into the gem [talk to me beforehand](mailto:henning.koch@makandra.de).
|
153
|
+
|
154
|
+
|
155
|
+
Credits
|
156
|
+
-------
|
157
|
+
|
158
|
+
Henning Koch from [makandra](https://makandra.com/)
|
data/Rakefile
CHANGED
@@ -1,62 +1,10 @@
|
|
1
1
|
require 'rake'
|
2
2
|
require 'bundler/gem_tasks'
|
3
3
|
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
desc 'Run tests on Travis CI'
|
10
|
-
task :run => ['slimgems', 'all:bundle:install', 'all:spec']
|
11
|
-
|
12
|
-
desc 'Install slimgems'
|
13
|
-
task :slimgems do
|
14
|
-
system('gem install slimgems')
|
15
|
-
end
|
16
|
-
|
17
|
-
end
|
18
|
-
|
19
|
-
namespace :all do
|
20
|
-
|
21
|
-
desc "Run specs on all spec apps"
|
22
|
-
task :spec do
|
23
|
-
success = true
|
24
|
-
for_each_directory_of('spec/**/Rakefile') do |directory|
|
25
|
-
env = "SPEC=../../#{ENV['SPEC']} " if ENV['SPEC']
|
26
|
-
success &= system("cd #{directory} && #{env} bundle exec rake spec")
|
27
|
-
end
|
28
|
-
fail "Tests failed" unless success
|
29
|
-
end
|
30
|
-
|
31
|
-
namespace :bundle do
|
32
|
-
|
33
|
-
desc "Bundle all spec apps"
|
34
|
-
task :install do
|
35
|
-
for_each_directory_of('spec/**/Gemfile') do |directory|
|
36
|
-
Bundler.with_clean_env do
|
37
|
-
system("cd #{directory} && bundle install")
|
38
|
-
end
|
39
|
-
end
|
40
|
-
end
|
41
|
-
|
42
|
-
desc "Update all gems, or a list of gem given by the GEM environment variable"
|
43
|
-
task :update do
|
44
|
-
for_each_directory_of('spec/**/Gemfile') do |directory|
|
45
|
-
Bundler.with_clean_env do
|
46
|
-
system("cd #{directory} && bundle update #{ENV['GEM']}")
|
47
|
-
end
|
48
|
-
end
|
49
|
-
end
|
50
|
-
|
51
|
-
end
|
52
|
-
|
53
|
-
end
|
54
|
-
|
55
|
-
def for_each_directory_of(path, &block)
|
56
|
-
Dir[path].sort.each do |rakefile|
|
57
|
-
directory = File.dirname(rakefile)
|
58
|
-
puts '', "\033[44m#{directory}\033[0m", ''
|
59
|
-
block.call(directory)
|
60
|
-
end
|
4
|
+
begin
|
5
|
+
require 'gemika/tasks'
|
6
|
+
rescue LoadError
|
7
|
+
puts 'Run `gem install gemika` for additional tasks'
|
61
8
|
end
|
62
9
|
|
10
|
+
task :default => 'matrix:spec'
|
data/cucumber_factory.gemspec
CHANGED
@@ -0,0 +1,17 @@
|
|
1
|
+
source 'https://rubygems.org'
|
2
|
+
|
3
|
+
# Runtime dependencies
|
4
|
+
gem 'cucumber', '~> 1.3.20'
|
5
|
+
gem 'activesupport', '~> 2.3.0'
|
6
|
+
gem 'activerecord', '~> 2.3.0'
|
7
|
+
gem 'mysql2', '= 0.2.20'
|
8
|
+
gem 'i18n', '=0.6.11' # 0.7 no longer builds for Ruby 1.8.7
|
9
|
+
|
10
|
+
# Development dependencies
|
11
|
+
gem 'rspec', '~> 1.0'
|
12
|
+
gem 'rake', '=10.0.4'
|
13
|
+
gem 'database_cleaner', '~>1.0.0'
|
14
|
+
gem 'gemika'
|
15
|
+
|
16
|
+
# Gem under test
|
17
|
+
gem 'cucumber_factory', :path => '..'
|
@@ -0,0 +1,53 @@
|
|
1
|
+
PATH
|
2
|
+
remote: ..
|
3
|
+
specs:
|
4
|
+
cucumber_factory (1.11.5)
|
5
|
+
activerecord
|
6
|
+
activesupport
|
7
|
+
cucumber
|
8
|
+
cucumber_priority (>= 0.2.0)
|
9
|
+
|
10
|
+
GEM
|
11
|
+
remote: https://rubygems.org/
|
12
|
+
specs:
|
13
|
+
activerecord (2.3.18)
|
14
|
+
activesupport (= 2.3.18)
|
15
|
+
activesupport (2.3.18)
|
16
|
+
builder (3.2.2)
|
17
|
+
cucumber (1.3.20)
|
18
|
+
builder (>= 2.1.2)
|
19
|
+
diff-lcs (>= 1.1.3)
|
20
|
+
gherkin (~> 2.12)
|
21
|
+
multi_json (>= 1.7.5, < 2.0)
|
22
|
+
multi_test (>= 0.1.2)
|
23
|
+
cucumber_priority (0.2.0)
|
24
|
+
cucumber
|
25
|
+
database_cleaner (1.0.1)
|
26
|
+
diff-lcs (1.2.5)
|
27
|
+
gemika (0.3.2)
|
28
|
+
gherkin (2.12.2)
|
29
|
+
multi_json (~> 1.3)
|
30
|
+
i18n (0.6.11)
|
31
|
+
multi_json (1.11.2)
|
32
|
+
multi_test (0.1.2)
|
33
|
+
mysql2 (0.2.20)
|
34
|
+
rake (10.0.4)
|
35
|
+
rspec (1.3.2)
|
36
|
+
|
37
|
+
PLATFORMS
|
38
|
+
ruby
|
39
|
+
|
40
|
+
DEPENDENCIES
|
41
|
+
activerecord (~> 2.3.0)
|
42
|
+
activesupport (~> 2.3.0)
|
43
|
+
cucumber (~> 1.3.20)
|
44
|
+
cucumber_factory!
|
45
|
+
database_cleaner (~> 1.0.0)
|
46
|
+
gemika
|
47
|
+
i18n (= 0.6.11)
|
48
|
+
mysql2 (= 0.2.20)
|
49
|
+
rake (= 10.0.4)
|
50
|
+
rspec (~> 1.0)
|
51
|
+
|
52
|
+
BUNDLED WITH
|
53
|
+
1.13.7
|
@@ -0,0 +1,16 @@
|
|
1
|
+
source 'https://rubygems.org'
|
2
|
+
|
3
|
+
# Runtime dependencies
|
4
|
+
gem 'cucumber', '~> 2.4.0'
|
5
|
+
gem 'activesupport', '~> 4.2.0'
|
6
|
+
gem 'activerecord', '~> 4.2.0'
|
7
|
+
gem 'mysql2'
|
8
|
+
|
9
|
+
# Development dependencies
|
10
|
+
gem 'rspec', '~> 3.0'
|
11
|
+
gem 'rake'
|
12
|
+
gem 'database_cleaner'
|
13
|
+
gem 'gemika'
|
14
|
+
|
15
|
+
# Gem under test
|
16
|
+
gem 'cucumber_factory', :path => '..'
|
@@ -0,0 +1,84 @@
|
|
1
|
+
PATH
|
2
|
+
remote: ..
|
3
|
+
specs:
|
4
|
+
cucumber_factory (1.11.5)
|
5
|
+
activerecord
|
6
|
+
activesupport
|
7
|
+
cucumber
|
8
|
+
cucumber_priority (>= 0.2.0)
|
9
|
+
|
10
|
+
GEM
|
11
|
+
remote: https://rubygems.org/
|
12
|
+
specs:
|
13
|
+
activemodel (4.2.7.1)
|
14
|
+
activesupport (= 4.2.7.1)
|
15
|
+
builder (~> 3.1)
|
16
|
+
activerecord (4.2.7.1)
|
17
|
+
activemodel (= 4.2.7.1)
|
18
|
+
activesupport (= 4.2.7.1)
|
19
|
+
arel (~> 6.0)
|
20
|
+
activesupport (4.2.7.1)
|
21
|
+
i18n (~> 0.7)
|
22
|
+
json (~> 1.7, >= 1.7.7)
|
23
|
+
minitest (~> 5.1)
|
24
|
+
thread_safe (~> 0.3, >= 0.3.4)
|
25
|
+
tzinfo (~> 1.1)
|
26
|
+
arel (6.0.4)
|
27
|
+
builder (3.2.2)
|
28
|
+
cucumber (2.4.0)
|
29
|
+
builder (>= 2.1.2)
|
30
|
+
cucumber-core (~> 1.5.0)
|
31
|
+
cucumber-wire (~> 0.0.1)
|
32
|
+
diff-lcs (>= 1.1.3)
|
33
|
+
gherkin (~> 4.0)
|
34
|
+
multi_json (>= 1.7.5, < 2.0)
|
35
|
+
multi_test (>= 0.1.2)
|
36
|
+
cucumber-core (1.5.0)
|
37
|
+
gherkin (~> 4.0)
|
38
|
+
cucumber-wire (0.0.1)
|
39
|
+
cucumber_priority (0.2.0)
|
40
|
+
cucumber
|
41
|
+
database_cleaner (1.5.3)
|
42
|
+
diff-lcs (1.2.5)
|
43
|
+
gemika (0.3.2)
|
44
|
+
gherkin (4.0.0)
|
45
|
+
i18n (0.7.0)
|
46
|
+
json (1.8.3)
|
47
|
+
minitest (5.10.1)
|
48
|
+
multi_json (1.12.1)
|
49
|
+
multi_test (0.1.2)
|
50
|
+
mysql2 (0.4.5)
|
51
|
+
rake (12.0.0)
|
52
|
+
rspec (3.5.0)
|
53
|
+
rspec-core (~> 3.5.0)
|
54
|
+
rspec-expectations (~> 3.5.0)
|
55
|
+
rspec-mocks (~> 3.5.0)
|
56
|
+
rspec-core (3.5.4)
|
57
|
+
rspec-support (~> 3.5.0)
|
58
|
+
rspec-expectations (3.5.0)
|
59
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
60
|
+
rspec-support (~> 3.5.0)
|
61
|
+
rspec-mocks (3.5.0)
|
62
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
63
|
+
rspec-support (~> 3.5.0)
|
64
|
+
rspec-support (3.5.0)
|
65
|
+
thread_safe (0.3.5)
|
66
|
+
tzinfo (1.2.2)
|
67
|
+
thread_safe (~> 0.1)
|
68
|
+
|
69
|
+
PLATFORMS
|
70
|
+
ruby
|
71
|
+
|
72
|
+
DEPENDENCIES
|
73
|
+
activerecord (~> 4.2.0)
|
74
|
+
activesupport (~> 4.2.0)
|
75
|
+
cucumber (~> 2.4.0)
|
76
|
+
cucumber_factory!
|
77
|
+
database_cleaner
|
78
|
+
gemika
|
79
|
+
mysql2
|
80
|
+
rake
|
81
|
+
rspec (~> 3.0)
|
82
|
+
|
83
|
+
BUNDLED WITH
|
84
|
+
1.13.7
|