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.
Files changed (120) hide show
  1. checksums.yaml +7 -0
  2. data/.rspec +1 -0
  3. data/.ruby-version +1 -1
  4. data/.travis.yml +42 -0
  5. data/Gemfile +1 -0
  6. data/Gemfile.lock +1 -0
  7. data/{MIT-LICENSE → LICENSE} +1 -1
  8. data/README.md +158 -0
  9. data/Rakefile +5 -57
  10. data/cucumber_factory.gemspec +2 -1
  11. data/gemfiles/Gemfile.cucumber-1.3 +17 -0
  12. data/gemfiles/Gemfile.cucumber-1.3.lock +53 -0
  13. data/gemfiles/Gemfile.cucumber-2.4 +16 -0
  14. data/gemfiles/Gemfile.cucumber-2.4.lock +84 -0
  15. data/gemfiles/Gemfile.cucumber-3.0 +16 -0
  16. data/gemfiles/Gemfile.cucumber-3.0.lock +79 -0
  17. data/lib/cucumber/factory.rb +13 -4
  18. data/lib/cucumber_factory.rb +5 -0
  19. data/lib/cucumber_factory/switcher.rb +9 -3
  20. data/lib/cucumber_factory/version.rb +1 -1
  21. data/spec/{shared/cucumber_factory → cucumber_factory}/factory/build_strategy_spec.rb +0 -1
  22. data/spec/{shared/cucumber_factory → cucumber_factory}/steps_spec.rb +20 -4
  23. data/spec/spec_helper.rb +12 -0
  24. data/spec/support/cucumber_helper.rb +35 -0
  25. data/spec/support/database.rb +30 -0
  26. data/spec/support/database.sample.yml +5 -0
  27. data/spec/support/database.travis.yml +4 -0
  28. data/spec/support/database.yml +5 -0
  29. data/spec/{shared/support → support}/factory_girl_mock.rb +0 -0
  30. data/spec/{shared/app_root/app → support}/models/job_offer.rb +0 -0
  31. data/spec/{shared/app_root/app → support}/models/machinist_model.rb +0 -0
  32. data/spec/{shared/app_root/app → support}/models/movie.rb +0 -0
  33. data/spec/{shared/app_root/app → support}/models/opera.rb +0 -0
  34. data/spec/{shared/app_root/app → support}/models/payment.rb +0 -0
  35. data/spec/support/models/people/actor.rb +4 -0
  36. data/spec/{shared/app_root/app → support}/models/plain_ruby_class.rb +0 -0
  37. data/spec/{shared/app_root/app → support}/models/user.rb +0 -0
  38. metadata +59 -117
  39. data/README.rdoc +0 -103
  40. data/spec/app_root/log/.keep +0 -0
  41. data/spec/rails-2.3/Gemfile +0 -10
  42. data/spec/rails-2.3/Gemfile.lock +0 -70
  43. data/spec/rails-2.3/Rakefile +0 -11
  44. data/spec/rails-2.3/app_root/config/boot.rb +0 -129
  45. data/spec/rails-2.3/app_root/config/database.yml +0 -4
  46. data/spec/rails-2.3/app_root/config/environment.rb +0 -7
  47. data/spec/rails-2.3/app_root/config/environments/test.rb +0 -28
  48. data/spec/rails-2.3/app_root/config/preinitializer.rb +0 -20
  49. data/spec/rails-2.3/app_root/config/routes.rb +0 -4
  50. data/spec/rails-2.3/app_root/log/.gitignore +0 -1
  51. data/spec/rails-2.3/rcov.opts +0 -2
  52. data/spec/rails-2.3/spec.opts +0 -4
  53. data/spec/rails-2.3/spec/spec_helper.rb +0 -28
  54. data/spec/rails-3.0/.rspec +0 -2
  55. data/spec/rails-3.0/Gemfile +0 -9
  56. data/spec/rails-3.0/Gemfile.lock +0 -126
  57. data/spec/rails-3.0/Rakefile +0 -10
  58. data/spec/rails-3.0/app_root/.gitignore +0 -4
  59. data/spec/rails-3.0/app_root/config/application.rb +0 -32
  60. data/spec/rails-3.0/app_root/config/boot.rb +0 -13
  61. data/spec/rails-3.0/app_root/config/database.yml +0 -4
  62. data/spec/rails-3.0/app_root/config/environment.rb +0 -5
  63. data/spec/rails-3.0/app_root/config/environments/test.rb +0 -35
  64. data/spec/rails-3.0/app_root/config/initializers/backtrace_silencers.rb +0 -7
  65. data/spec/rails-3.0/app_root/config/initializers/inflections.rb +0 -10
  66. data/spec/rails-3.0/app_root/config/initializers/mime_types.rb +0 -5
  67. data/spec/rails-3.0/app_root/config/initializers/secret_token.rb +0 -7
  68. data/spec/rails-3.0/app_root/config/initializers/session_store.rb +0 -8
  69. data/spec/rails-3.0/app_root/config/routes.rb +0 -3
  70. data/spec/rails-3.0/app_root/log/.gitkeep +0 -0
  71. data/spec/rails-3.0/rcov.opts +0 -2
  72. data/spec/rails-3.0/spec/spec_helper.rb +0 -25
  73. data/spec/rails-3.2/.rspec +0 -2
  74. data/spec/rails-3.2/Gemfile +0 -9
  75. data/spec/rails-3.2/Gemfile.lock +0 -136
  76. data/spec/rails-3.2/Rakefile +0 -10
  77. data/spec/rails-3.2/app_root/.gitignore +0 -4
  78. data/spec/rails-3.2/app_root/config/application.rb +0 -32
  79. data/spec/rails-3.2/app_root/config/boot.rb +0 -13
  80. data/spec/rails-3.2/app_root/config/database.yml +0 -4
  81. data/spec/rails-3.2/app_root/config/environment.rb +0 -5
  82. data/spec/rails-3.2/app_root/config/environments/test.rb +0 -35
  83. data/spec/rails-3.2/app_root/config/initializers/backtrace_silencers.rb +0 -7
  84. data/spec/rails-3.2/app_root/config/initializers/inflections.rb +0 -10
  85. data/spec/rails-3.2/app_root/config/initializers/mime_types.rb +0 -5
  86. data/spec/rails-3.2/app_root/config/initializers/secret_token.rb +0 -7
  87. data/spec/rails-3.2/app_root/config/initializers/session_store.rb +0 -8
  88. data/spec/rails-3.2/app_root/config/routes.rb +0 -3
  89. data/spec/rails-3.2/app_root/log/.gitkeep +0 -0
  90. data/spec/rails-3.2/rcov.opts +0 -2
  91. data/spec/rails-3.2/spec/spec_helper.rb +0 -25
  92. data/spec/rails-4.0/.rspec +0 -2
  93. data/spec/rails-4.0/Gemfile +0 -9
  94. data/spec/rails-4.0/Gemfile.lock +0 -114
  95. data/spec/rails-4.0/Rakefile +0 -10
  96. data/spec/rails-4.0/app_root/.gitignore +0 -4
  97. data/spec/rails-4.0/app_root/config/application.rb +0 -31
  98. data/spec/rails-4.0/app_root/config/boot.rb +0 -13
  99. data/spec/rails-4.0/app_root/config/database.yml +0 -4
  100. data/spec/rails-4.0/app_root/config/environment.rb +0 -5
  101. data/spec/rails-4.0/app_root/config/environments/test.rb +0 -34
  102. data/spec/rails-4.0/app_root/config/initializers/backtrace_silencers.rb +0 -7
  103. data/spec/rails-4.0/app_root/config/initializers/inflections.rb +0 -10
  104. data/spec/rails-4.0/app_root/config/initializers/mime_types.rb +0 -5
  105. data/spec/rails-4.0/app_root/config/initializers/secret_token.rb +0 -7
  106. data/spec/rails-4.0/app_root/config/initializers/session_store.rb +0 -8
  107. data/spec/rails-4.0/app_root/config/locales/en.yml +0 -4
  108. data/spec/rails-4.0/app_root/config/routes.rb +0 -3
  109. data/spec/rails-4.0/app_root/log/.gitkeep +0 -0
  110. data/spec/rails-4.0/rcov.opts +0 -2
  111. data/spec/rails-4.0/spec/spec_helper.rb +0 -25
  112. data/spec/shared/app_root/app/controllers/application_controller.rb +0 -2
  113. data/spec/shared/app_root/app/models/people/actor.rb +0 -2
  114. data/spec/shared/app_root/config/locales/en.yml +0 -4
  115. data/spec/shared/app_root/db/migrate/001_create_movies.rb +0 -17
  116. data/spec/shared/app_root/db/migrate/002_create_users.rb +0 -20
  117. data/spec/shared/app_root/db/migrate/003_create_payments.rb +0 -14
  118. data/spec/shared/app_root/db/migrate/004_create_actors.rb +0 -12
  119. data/spec/shared/cucumber_factory/cucumber_helper.rb +0 -15
  120. data/spec/shared/cucumber_factory/runtime_ext_spec.rb +0 -33
@@ -0,0 +1,16 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Runtime dependencies
4
+ gem 'cucumber', '~> 3.0.0.pre.1'
5
+ gem 'activesupport', '~> 5.0.0'
6
+ gem 'activerecord', '~> 5.0.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'
@@ -0,0 +1,79 @@
1
+ GEM
2
+ remote: https://rubygems.org/
3
+ specs:
4
+ activemodel (5.0.1)
5
+ activesupport (= 5.0.1)
6
+ activerecord (5.0.1)
7
+ activemodel (= 5.0.1)
8
+ activesupport (= 5.0.1)
9
+ arel (~> 7.0)
10
+ activesupport (5.0.1)
11
+ concurrent-ruby (~> 1.0, >= 1.0.2)
12
+ i18n (~> 0.7)
13
+ minitest (~> 5.1)
14
+ tzinfo (~> 1.1)
15
+ arel (7.1.4)
16
+ backports (3.6.8)
17
+ builder (3.2.2)
18
+ concurrent-ruby (1.0.4)
19
+ cucumber (3.0.0.pre.1)
20
+ builder (>= 2.1.2)
21
+ cucumber-core (~> 2.0)
22
+ cucumber-wire (~> 0.0.1)
23
+ diff-lcs (>= 1.1.3)
24
+ gherkin (~> 4.0)
25
+ multi_json (>= 1.7.5, < 2.0)
26
+ multi_test (>= 0.1.2)
27
+ cucumber-core (2.0.0)
28
+ backports (~> 3.6)
29
+ gherkin (~> 4.0)
30
+ cucumber-wire (0.0.1)
31
+ cucumber_factory (1.11.5)
32
+ activesupport
33
+ cucumber
34
+ cucumber_priority
35
+ cucumber_priority (0.2.0)
36
+ cucumber
37
+ database_cleaner (1.5.3)
38
+ diff-lcs (1.2.5)
39
+ gemika (0.3.2)
40
+ gherkin (4.0.0)
41
+ i18n (0.7.0)
42
+ minitest (5.10.1)
43
+ multi_json (1.12.1)
44
+ multi_test (0.1.2)
45
+ mysql2 (0.4.5)
46
+ rake (12.0.0)
47
+ rspec (3.5.0)
48
+ rspec-core (~> 3.5.0)
49
+ rspec-expectations (~> 3.5.0)
50
+ rspec-mocks (~> 3.5.0)
51
+ rspec-core (3.5.4)
52
+ rspec-support (~> 3.5.0)
53
+ rspec-expectations (3.5.0)
54
+ diff-lcs (>= 1.2.0, < 2.0)
55
+ rspec-support (~> 3.5.0)
56
+ rspec-mocks (3.5.0)
57
+ diff-lcs (>= 1.2.0, < 2.0)
58
+ rspec-support (~> 3.5.0)
59
+ rspec-support (3.5.0)
60
+ thread_safe (0.3.5)
61
+ tzinfo (1.2.2)
62
+ thread_safe (~> 0.1)
63
+
64
+ PLATFORMS
65
+ ruby
66
+
67
+ DEPENDENCIES
68
+ activerecord (~> 5.0.0)
69
+ activesupport (~> 5.0.0)
70
+ cucumber (~> 3.0.0.pre.1)
71
+ cucumber_factory
72
+ database_cleaner
73
+ gemika
74
+ mysql2
75
+ rake
76
+ rspec (~> 3.0)
77
+
78
+ BUNDLED WITH
79
+ 1.13.7
@@ -9,7 +9,7 @@ module Cucumber
9
9
 
10
10
  CLEAR_NAMED_RECORDS_STEP_DESCRIPTOR = {
11
11
  :kind => :Before,
12
- :block => proc { instance_variable_set(NAMED_RECORDS_VARIABLE, {}) }
12
+ :block => proc { Cucumber::Factory.send(:forget_named_records, self) }
13
13
  }
14
14
 
15
15
  NAMED_CREATION_STEP_DESCRIPTOR = {
@@ -45,14 +45,23 @@ module Cucumber
45
45
  }
46
46
  end
47
47
 
48
+ def reset_named_records(world)
49
+ world.instance_variable_set(NAMED_RECORDS_VARIABLE, {})
50
+ end
51
+
52
+ def named_records(world)
53
+ hash = world.instance_variable_get(NAMED_RECORDS_VARIABLE)
54
+ hash || reset_named_records(world)
55
+ end
56
+
48
57
  def get_named_record(world, name)
49
- world.instance_variable_get(NAMED_RECORDS_VARIABLE)[name].tap do |record|
58
+ named_records(world)[name].tap do |record|
50
59
  record.reload if record.respond_to?(:reload) and record.respond_to?(:new_record?) and not record.new_record?
51
60
  end
52
61
  end
53
62
 
54
63
  def set_named_record(world, name, record)
55
- world.instance_variable_get(NAMED_RECORDS_VARIABLE)[name] = record
64
+ named_records(world)[name] = record
56
65
  end
57
66
 
58
67
  def parse_named_creation(world, name, raw_model, raw_variant, raw_attributes, raw_boolean_attributes)
@@ -65,7 +74,7 @@ module Cucumber
65
74
  model_class = build_strategy.model_class
66
75
  attributes = {}
67
76
  if raw_attributes.try(:strip).present?
68
- raw_attributes.scan(/(?:the|and|with|but|,| )+(.*?) ("([^\"]*)"|above)/).each do |fragment|
77
+ raw_attributes.scan(/(?:the |and |with |but |,| )+(.*?) ("([^\"]*)"|above)/).each do |fragment|
69
78
  attribute = attribute_name_from_prose(fragment[0])
70
79
  value_type = fragment[1] # 'above' or a quoted string
71
80
  value = fragment[2] # the value string without quotes
@@ -1,5 +1,10 @@
1
+ # Runtime dependencies
1
2
  require 'active_support/all'
3
+ require 'active_record'
2
4
  require 'cucumber'
5
+ require 'cucumber/rb_support/rb_language'
3
6
  require 'cucumber_priority'
7
+
8
+ # Gem
4
9
  require 'cucumber/factory'
5
10
  require 'cucumber_factory/switcher'
@@ -6,7 +6,7 @@ module CucumberFactory
6
6
  # Don't use class.last, in sqlite that is not always the last inserted element
7
7
  # If created_at is available prefer it over id as column for ordering so that we can handle UUIDs
8
8
  order_column = klass.column_names.include?('created_at') ? 'created_at, id' : 'id'
9
- if Rails::VERSION::MAJOR < 4
9
+ if active_record_version < 4
10
10
  klass.find(:last, :order => order_column)
11
11
  else
12
12
  klass.order(order_column).last
@@ -14,14 +14,20 @@ module CucumberFactory
14
14
  end
15
15
 
16
16
  def assign_attributes(model, attributes)
17
- if Rails::VERSION::MAJOR < 3 || (Rails::VERSION::MAJOR == 3 && Rails::VERSION::MINOR < 2)
17
+ if active_record_version < 3
18
18
  model.send(:attributes=, attributes, false) # ignore attr_accessible
19
- elsif Rails::VERSION::MAJOR < 4
19
+ elsif active_record_version < 4
20
20
  model.send(:assign_attributes, attributes, :without_protection => true)
21
21
  else
22
22
  model.send(:assign_attributes, attributes)
23
23
  end
24
24
  end
25
25
 
26
+ private
27
+
28
+ def active_record_version
29
+ ActiveRecord::VERSION::MAJOR
30
+ end
31
+
26
32
  end
27
33
  end
@@ -1,3 +1,3 @@
1
1
  module CucumberFactory
2
- VERSION = '1.11.4'
2
+ VERSION = '1.11.5'
3
3
  end
@@ -1,5 +1,4 @@
1
1
  require 'spec_helper'
2
- require_relative '../../support/factory_girl_mock'
3
2
 
4
3
  describe Cucumber::Factory::BuildStrategy do
5
4
 
@@ -1,9 +1,5 @@
1
1
  require 'spec_helper'
2
2
 
3
- require_relative 'cucumber_helper'
4
- require 'cucumber'
5
- require 'cucumber/rb_support/rb_language'
6
- require_relative '../support/factory_girl_mock'
7
3
 
8
4
  describe 'steps provided by cucumber_factory' do
9
5
 
@@ -254,4 +250,24 @@ describe 'steps provided by cucumber_factory' do
254
250
  user.deleted.should == true
255
251
  end
256
252
 
253
+ it "should allow attribute names starting with 'the'" do
254
+ PlainRubyClass.should_receive(:new).with({:theme => 'Sci-fi'})
255
+ invoke_cucumber_step('there is a plain ruby class with the theme "Sci-fi"')
256
+ end
257
+
258
+ it "should allow attribute names starting with 'and'" do
259
+ PlainRubyClass.should_receive(:new).with({:android => 'Paranoid'})
260
+ invoke_cucumber_step('there is a plain ruby class with the android "Paranoid"')
261
+ end
262
+
263
+ it "should allow attribute names starting with 'with'" do
264
+ PlainRubyClass.should_receive(:new).with({:withdrawal => 'bank_account'})
265
+ invoke_cucumber_step('there is a plain ruby class with the withdrawal "bank_account"')
266
+ end
267
+
268
+ it "should allow attribute names starting with 'but'" do
269
+ PlainRubyClass.should_receive(:new).with({:butt => 'pear-shaped'})
270
+ invoke_cucumber_step('there is a plain ruby class with the butt "pear-shaped"')
271
+ end
272
+
257
273
  end
@@ -0,0 +1,12 @@
1
+ $: << File.join(File.dirname(__FILE__), "/../../lib" )
2
+
3
+ require 'cucumber_factory'
4
+ require 'gemika'
5
+
6
+ ActiveRecord::Base.default_timezone = :local
7
+
8
+ Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].sort.each {|f| require f}
9
+ Dir["#{File.dirname(__FILE__)}/shared_examples/**/*.rb"].sort.each {|f| require f}
10
+
11
+ Gemika::RSpec.configure_clean_database_before_example
12
+ Gemika::RSpec.configure_should_syntax
@@ -0,0 +1,35 @@
1
+ def prepare_cucumber_example
2
+ @runtime = Cucumber::Runtime.new
3
+ language = load_ruby_language
4
+ scenario = double('scenario', :language => 'en')
5
+ language.send(:begin_scenario, scenario)
6
+ @world = language.current_world
7
+ @main = Object.new
8
+ @main.extend(Cucumber::RbSupport::RbDsl)
9
+ Cucumber::Factory.add_steps(@main)
10
+ # @runtime.before(scenario) if @runtime.respond_to?(:before)
11
+ # support_code.apply_before_hooks(scenario) # if @runtime.respond_to?(:apply_before_hooks)
12
+ end
13
+
14
+ def load_ruby_language
15
+ language = support_code.ruby if support_code.respond_to?(:ruby)
16
+ language ||= support_code.load_programming_language('rb')
17
+ language
18
+ end
19
+
20
+ def invoke_cucumber_step(step)
21
+ multiline_argument = begin
22
+ Cucumber::MultilineArgument::None.new # Cucumber 2+
23
+ rescue NameError
24
+ nil # Cucumber 1
25
+ end
26
+ first_step_match(step).invoke(multiline_argument) # nil means no multiline args
27
+ end
28
+
29
+ def support_code
30
+ @runtime.instance_variable_get(:@support_code)
31
+ end
32
+
33
+ def first_step_match(*args)
34
+ support_code.send(:step_matches, *args).first
35
+ end
@@ -0,0 +1,30 @@
1
+ Gemika::Database.new.rewrite_schema! do
2
+
3
+ create_table :movies do |t|
4
+ t.string :title
5
+ t.integer :year
6
+ t.integer :prequel_id
7
+ t.integer :reviewer_id
8
+ t.integer :box_office_result
9
+ end
10
+
11
+ create_table :users do |t|
12
+ t.string :email
13
+ t.string :name
14
+ t.boolean :deleted
15
+ t.boolean :locked
16
+ t.boolean :subscribed
17
+ t.boolean :scared
18
+ t.boolean :scared_by_spiders
19
+ t.datetime :created_at
20
+ end
21
+
22
+ create_table :payments do |t|
23
+ t.text :comment
24
+ t.integer :amount
25
+ end
26
+
27
+ create_table :actors do |t|
28
+ end
29
+
30
+ end
@@ -0,0 +1,5 @@
1
+ mysql:
2
+ database: cucumber_factory_test
3
+ host: localhost
4
+ username: root
5
+ password: secret
@@ -0,0 +1,4 @@
1
+ mysql:
2
+ database: cucumber_factory_test
3
+ username: travis
4
+ password:
@@ -0,0 +1,5 @@
1
+ mysql:
2
+ database: cucumber_factory_test
3
+ host: localhost
4
+ username: root
5
+ password: junior
@@ -0,0 +1,4 @@
1
+ module People
2
+ class Actor < ActiveRecord::Base
3
+ end
4
+ end
metadata CHANGED
@@ -1,64 +1,71 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cucumber_factory
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.11.4
5
- prerelease:
4
+ version: 1.11.5
6
5
  platform: ruby
7
6
  authors:
8
7
  - Henning Koch
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2015-11-26 00:00:00.000000000 Z
11
+ date: 2017-05-16 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: cucumber
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ! '>='
17
+ - - ">="
20
18
  - !ruby/object:Gem::Version
21
19
  version: '0'
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ! '>='
24
+ - - ">="
28
25
  - !ruby/object:Gem::Version
29
26
  version: '0'
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: activesupport
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
- - - ! '>='
31
+ - - ">="
36
32
  - !ruby/object:Gem::Version
37
33
  version: '0'
38
34
  type: :runtime
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
- - - ! '>='
38
+ - - ">="
44
39
  - !ruby/object:Gem::Version
45
40
  version: '0'
46
41
  - !ruby/object:Gem::Dependency
47
- name: cucumber_priority
42
+ name: activerecord
48
43
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
44
  requirements:
51
- - - ! '>='
45
+ - - ">="
52
46
  - !ruby/object:Gem::Version
53
47
  version: '0'
54
48
  type: :runtime
55
49
  prerelease: false
56
50
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
51
  requirements:
59
- - - ! '>='
52
+ - - ">="
60
53
  - !ruby/object:Gem::Version
61
54
  version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: cucumber_priority
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: 0.2.0
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: 0.2.0
62
69
  description: Cucumber Factory allows you to create ActiveRecord models from your Cucumber
63
70
  features without writing step definitions for each model.
64
71
  email: github@makandra.de
@@ -66,131 +73,66 @@ executables: []
66
73
  extensions: []
67
74
  extra_rdoc_files: []
68
75
  files:
69
- - .gitignore
70
- - .ruby-version
71
- - MIT-LICENSE
72
- - README.rdoc
76
+ - ".gitignore"
77
+ - ".rspec"
78
+ - ".ruby-version"
79
+ - ".travis.yml"
80
+ - Gemfile
81
+ - Gemfile.lock
82
+ - LICENSE
83
+ - README.md
73
84
  - Rakefile
74
85
  - cucumber_factory.gemspec
86
+ - gemfiles/Gemfile.cucumber-1.3
87
+ - gemfiles/Gemfile.cucumber-1.3.lock
88
+ - gemfiles/Gemfile.cucumber-2.4
89
+ - gemfiles/Gemfile.cucumber-2.4.lock
90
+ - gemfiles/Gemfile.cucumber-3.0
91
+ - gemfiles/Gemfile.cucumber-3.0.lock
75
92
  - lib/cucumber/factory.rb
76
93
  - lib/cucumber/factory/build_strategy.rb
77
94
  - lib/cucumber_factory.rb
78
95
  - lib/cucumber_factory/switcher.rb
79
96
  - lib/cucumber_factory/version.rb
80
- - spec/app_root/log/.keep
81
- - spec/rails-2.3/Gemfile
82
- - spec/rails-2.3/Gemfile.lock
83
- - spec/rails-2.3/Rakefile
84
- - spec/rails-2.3/app_root/config/boot.rb
85
- - spec/rails-2.3/app_root/config/database.yml
86
- - spec/rails-2.3/app_root/config/environment.rb
87
- - spec/rails-2.3/app_root/config/environments/test.rb
88
- - spec/rails-2.3/app_root/config/preinitializer.rb
89
- - spec/rails-2.3/app_root/config/routes.rb
90
- - spec/rails-2.3/app_root/log/.gitignore
91
- - spec/rails-2.3/rcov.opts
92
- - spec/rails-2.3/spec.opts
93
- - spec/rails-2.3/spec/spec_helper.rb
94
- - spec/rails-3.0/.rspec
95
- - spec/rails-3.0/Gemfile
96
- - spec/rails-3.0/Gemfile.lock
97
- - spec/rails-3.0/Rakefile
98
- - spec/rails-3.0/app_root/.gitignore
99
- - spec/rails-3.0/app_root/config/application.rb
100
- - spec/rails-3.0/app_root/config/boot.rb
101
- - spec/rails-3.0/app_root/config/database.yml
102
- - spec/rails-3.0/app_root/config/environment.rb
103
- - spec/rails-3.0/app_root/config/environments/test.rb
104
- - spec/rails-3.0/app_root/config/initializers/backtrace_silencers.rb
105
- - spec/rails-3.0/app_root/config/initializers/inflections.rb
106
- - spec/rails-3.0/app_root/config/initializers/mime_types.rb
107
- - spec/rails-3.0/app_root/config/initializers/secret_token.rb
108
- - spec/rails-3.0/app_root/config/initializers/session_store.rb
109
- - spec/rails-3.0/app_root/config/routes.rb
110
- - spec/rails-3.0/app_root/log/.gitkeep
111
- - spec/rails-3.0/rcov.opts
112
- - spec/rails-3.0/spec/spec_helper.rb
113
- - spec/rails-3.2/.rspec
114
- - spec/rails-3.2/Gemfile
115
- - spec/rails-3.2/Gemfile.lock
116
- - spec/rails-3.2/Rakefile
117
- - spec/rails-3.2/app_root/.gitignore
118
- - spec/rails-3.2/app_root/config/application.rb
119
- - spec/rails-3.2/app_root/config/boot.rb
120
- - spec/rails-3.2/app_root/config/database.yml
121
- - spec/rails-3.2/app_root/config/environment.rb
122
- - spec/rails-3.2/app_root/config/environments/test.rb
123
- - spec/rails-3.2/app_root/config/initializers/backtrace_silencers.rb
124
- - spec/rails-3.2/app_root/config/initializers/inflections.rb
125
- - spec/rails-3.2/app_root/config/initializers/mime_types.rb
126
- - spec/rails-3.2/app_root/config/initializers/secret_token.rb
127
- - spec/rails-3.2/app_root/config/initializers/session_store.rb
128
- - spec/rails-3.2/app_root/config/routes.rb
129
- - spec/rails-3.2/app_root/log/.gitkeep
130
- - spec/rails-3.2/rcov.opts
131
- - spec/rails-3.2/spec/spec_helper.rb
132
- - spec/rails-4.0/.rspec
133
- - spec/rails-4.0/Gemfile
134
- - spec/rails-4.0/Gemfile.lock
135
- - spec/rails-4.0/Rakefile
136
- - spec/rails-4.0/app_root/.gitignore
137
- - spec/rails-4.0/app_root/config/application.rb
138
- - spec/rails-4.0/app_root/config/boot.rb
139
- - spec/rails-4.0/app_root/config/database.yml
140
- - spec/rails-4.0/app_root/config/environment.rb
141
- - spec/rails-4.0/app_root/config/environments/test.rb
142
- - spec/rails-4.0/app_root/config/initializers/backtrace_silencers.rb
143
- - spec/rails-4.0/app_root/config/initializers/inflections.rb
144
- - spec/rails-4.0/app_root/config/initializers/mime_types.rb
145
- - spec/rails-4.0/app_root/config/initializers/secret_token.rb
146
- - spec/rails-4.0/app_root/config/initializers/session_store.rb
147
- - spec/rails-4.0/app_root/config/locales/en.yml
148
- - spec/rails-4.0/app_root/config/routes.rb
149
- - spec/rails-4.0/app_root/log/.gitkeep
150
- - spec/rails-4.0/rcov.opts
151
- - spec/rails-4.0/spec/spec_helper.rb
152
- - spec/shared/app_root/app/controllers/application_controller.rb
153
- - spec/shared/app_root/app/models/job_offer.rb
154
- - spec/shared/app_root/app/models/machinist_model.rb
155
- - spec/shared/app_root/app/models/movie.rb
156
- - spec/shared/app_root/app/models/opera.rb
157
- - spec/shared/app_root/app/models/payment.rb
158
- - spec/shared/app_root/app/models/people/actor.rb
159
- - spec/shared/app_root/app/models/plain_ruby_class.rb
160
- - spec/shared/app_root/app/models/user.rb
161
- - spec/shared/app_root/config/locales/en.yml
162
- - spec/shared/app_root/db/migrate/001_create_movies.rb
163
- - spec/shared/app_root/db/migrate/002_create_users.rb
164
- - spec/shared/app_root/db/migrate/003_create_payments.rb
165
- - spec/shared/app_root/db/migrate/004_create_actors.rb
166
- - spec/shared/cucumber_factory/cucumber_helper.rb
167
- - spec/shared/cucumber_factory/factory/build_strategy_spec.rb
168
- - spec/shared/cucumber_factory/runtime_ext_spec.rb
169
- - spec/shared/cucumber_factory/steps_spec.rb
170
- - spec/shared/support/factory_girl_mock.rb
97
+ - spec/cucumber_factory/factory/build_strategy_spec.rb
98
+ - spec/cucumber_factory/steps_spec.rb
99
+ - spec/spec_helper.rb
100
+ - spec/support/cucumber_helper.rb
101
+ - spec/support/database.rb
102
+ - spec/support/database.sample.yml
103
+ - spec/support/database.travis.yml
104
+ - spec/support/database.yml
105
+ - spec/support/factory_girl_mock.rb
106
+ - spec/support/models/job_offer.rb
107
+ - spec/support/models/machinist_model.rb
108
+ - spec/support/models/movie.rb
109
+ - spec/support/models/opera.rb
110
+ - spec/support/models/payment.rb
111
+ - spec/support/models/people/actor.rb
112
+ - spec/support/models/plain_ruby_class.rb
113
+ - spec/support/models/user.rb
171
114
  homepage: http://github.com/makandra/cucumber_factory
172
115
  licenses:
173
116
  - MIT
117
+ metadata: {}
174
118
  post_install_message:
175
119
  rdoc_options: []
176
120
  require_paths:
177
121
  - lib
178
122
  required_ruby_version: !ruby/object:Gem::Requirement
179
- none: false
180
123
  requirements:
181
- - - ! '>='
124
+ - - ">="
182
125
  - !ruby/object:Gem::Version
183
126
  version: '0'
184
127
  required_rubygems_version: !ruby/object:Gem::Requirement
185
- none: false
186
128
  requirements:
187
- - - ! '>='
129
+ - - ">="
188
130
  - !ruby/object:Gem::Version
189
131
  version: '0'
190
132
  requirements: []
191
133
  rubyforge_project:
192
- rubygems_version: 1.8.30
134
+ rubygems_version: 2.6.12
193
135
  signing_key:
194
- specification_version: 3
136
+ specification_version: 4
195
137
  summary: Create records from Cucumber features without writing step definitions.
196
138
  test_files: []