cucumber_factory 2.1.0 → 2.4.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3153238ae9f4c30fd21e6dd493621e361d4bc6b508521effc93fbb4cb4be8af2
4
- data.tar.gz: c152087fd0231027a94abf15f2abff5c3b3857c714212f3c1eefa67902b32b3e
3
+ metadata.gz: 78565ce9629eae8ff1b24176f63ad3fad1888e8655512111abbfab093a5055c2
4
+ data.tar.gz: 872f23d4281d15207b32b70a763de61c86754528480c1583a6833cd9ced941c3
5
5
  SHA512:
6
- metadata.gz: 48b39f6ebaedb5bca521d07579384cbcffea01eb4638787de026ce683b1db2abc70fd91227f272cd88a75cb3a15cd8e780989b99a3429313aa6f9e0f6a8575c9
7
- data.tar.gz: 5b16cb2d4e73c1fde061b12e31a23944a3d6889316002805cd0f0bb7d0355cf520d01cb587c5a0ab58648633f83189ee2bba9597b2bda7217315db5fc48ca218
6
+ metadata.gz: 7efebf9e96a5c1c84d0c04e7c34f8bb652c2a30d44176ea4787d0e7deb8315d87840ab92906c769170189ea125a2d3bee0f45c64db053f8605064e60069471ef
7
+ data.tar.gz: e676696b08c3cf2beee1266d3c667b725988343794d110b0d3b1d70ad80ea6aa2b253b920d13312261fa0ac21eba5482171b5f1f126b522e258b2ffc76d50a66
@@ -0,0 +1,60 @@
1
+ ---
2
+ name: Tests
3
+ 'on':
4
+ push:
5
+ branches:
6
+ - master
7
+ pull_request:
8
+ branches:
9
+ - master
10
+ jobs:
11
+ test:
12
+ runs-on: ubuntu-20.04
13
+ services:
14
+ postgres:
15
+ image: postgres:12.4
16
+ env:
17
+ POSTGRES_PASSWORD: postgres
18
+ options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
19
+ ports:
20
+ - 5432:5432
21
+ strategy:
22
+ fail-fast: false
23
+ matrix:
24
+ include:
25
+ - ruby: 2.2.10
26
+ gemfile: Gemfile.cucumber-1.3
27
+ - ruby: 2.2.10
28
+ gemfile: Gemfile.cucumber-2.4
29
+ - ruby: 2.5.3
30
+ gemfile: Gemfile.cucumber-1.3
31
+ - ruby: 2.5.3
32
+ gemfile: Gemfile.cucumber-2.4
33
+ - ruby: 2.5.3
34
+ gemfile: Gemfile.cucumber-3.0
35
+ - ruby: 2.5.3
36
+ gemfile: Gemfile.cucumber-3.1
37
+ - ruby: 2.6.6
38
+ gemfile: Gemfile.cucumber-4.1
39
+ - ruby: 2.7.2
40
+ gemfile: Gemfile.cucumber-5.3
41
+ - ruby: 3.0.0
42
+ gemfile: Gemfile.cucumber-5.3
43
+ env:
44
+ BUNDLE_GEMFILE: "${{ matrix.gemfile }}"
45
+ steps:
46
+ - uses: actions/checkout@v2
47
+ - name: Install ruby
48
+ uses: ruby/setup-ruby@v1
49
+ with:
50
+ ruby-version: "${{ matrix.ruby }}"
51
+ - name: Setup database
52
+ run: |
53
+ sudo apt-get install -y postgresql-client
54
+ PGPASSWORD=postgres psql -c 'create database cucumber_factory_test;' -U postgres -p 5432 -h localhost
55
+ - name: Bundle
56
+ run: |
57
+ gem install bundler:1.17.3
58
+ bundle install --no-deployment
59
+ - name: Run tests
60
+ run: bundle exec rspec
data/.gitignore CHANGED
@@ -6,3 +6,4 @@ pkg
6
6
  .rvmrc
7
7
  log/*.log
8
8
  spec/support/database.yml
9
+ uploads/
data/CHANGELOG.md CHANGED
@@ -15,6 +15,52 @@ This project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html
15
15
 
16
16
  -
17
17
 
18
+ ## 2.4.0 - 2021-03-30
19
+
20
+ ### Compatible changes
21
+
22
+ - Added support for ActiveRecord >= 6.
23
+
24
+ ## 2.3.1 - 2020-10-01
25
+
26
+ ### Compatible changes
27
+
28
+ - Lowered the priority of all steps in this gem to avoid issues with overlapping steps.
29
+
30
+ ## 2.3.0 - 2020-09-24
31
+
32
+ ### Compatible changes
33
+
34
+ - Added a step to add file objects to a model:
35
+ ```cucumber
36
+ Given there is a user with the avatar file:"path/to/avatar.jpg"
37
+ ```
38
+ Both single and double quotes are supported.
39
+
40
+ ## 2.2.0 - 2020-09-23
41
+
42
+ ### Compatible changes
43
+
44
+ - A step was added that allows modifying existing records with a similar syntax to creating new records:
45
+ ```cucumber
46
+ (Given "Bob" is a user)
47
+ And "Bob" has the email "foo@bar.com" and is subscribed
48
+ ```
49
+ - This step will also work with doc strings or tables:
50
+ ```cucumber
51
+ (Given "Bob" is a user)
52
+ And the user above has these attributes:
53
+ | name | Bob |
54
+ | email | foo@bar.com |
55
+ ```
56
+
57
+ ## 2.1.1 - 2020-05-20
58
+
59
+ ### Compatible changes
60
+
61
+ - Cucumber 2.1.0 introduced some regressions which are being addressed with this patch:
62
+ - Fix the assignment of polymorphic associations.
63
+ - Restore the support for inherited traits within nested factories.
18
64
 
19
65
  ## 2.1.0 - 2020-03-09
20
66
 
data/Gemfile.cucumber-1.3 CHANGED
@@ -4,7 +4,7 @@ source 'https://rubygems.org'
4
4
  gem 'cucumber', '~> 1.3.20'
5
5
  gem 'activesupport', '~> 4.2.0'
6
6
  gem 'activerecord', '~> 4.2.0'
7
- gem 'mysql2'
7
+ gem 'pg', ' < 1'
8
8
 
9
9
  # Development dependencies
10
10
  gem 'rspec', '> 3.0'
@@ -14,6 +14,7 @@ gem 'gemika'
14
14
 
15
15
  # Test dependencies
16
16
  gem 'factory_bot', '< 5'
17
+ gem 'carrierwave', '~> 1.0'
17
18
 
18
19
  # Gem under test
19
20
  gem 'cucumber_factory', :path => '.'
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- cucumber_factory (2.1.0)
4
+ cucumber_factory (2.4.0)
5
5
  activerecord
6
6
  activesupport
7
7
  cucumber
@@ -24,6 +24,10 @@ GEM
24
24
  tzinfo (~> 1.1)
25
25
  arel (6.0.4)
26
26
  builder (3.2.4)
27
+ carrierwave (1.2.3)
28
+ activemodel (>= 4.0.0)
29
+ activesupport (>= 4.0.0)
30
+ mime-types (>= 1.16)
27
31
  concurrent-ruby (1.1.6)
28
32
  cucumber (1.3.20)
29
33
  builder (>= 2.1.2)
@@ -37,15 +41,18 @@ GEM
37
41
  diff-lcs (1.3)
38
42
  factory_bot (4.11.1)
39
43
  activesupport (>= 3.0.0)
40
- gemika (0.4.0)
44
+ gemika (0.5.0)
41
45
  gherkin (2.12.2)
42
46
  multi_json (~> 1.3)
43
47
  i18n (0.9.5)
44
48
  concurrent-ruby (~> 1.0)
49
+ mime-types (3.2.2)
50
+ mime-types-data (~> 3.2015)
51
+ mime-types-data (3.2018.0812)
45
52
  minitest (5.12.0)
46
53
  multi_json (1.14.1)
47
54
  multi_test (0.1.2)
48
- mysql2 (0.5.3)
55
+ pg (0.21.0)
49
56
  rake (12.3.3)
50
57
  rspec (3.9.0)
51
58
  rspec-core (~> 3.9.0)
@@ -70,12 +77,13 @@ PLATFORMS
70
77
  DEPENDENCIES
71
78
  activerecord (~> 4.2.0)
72
79
  activesupport (~> 4.2.0)
80
+ carrierwave (~> 1.0)
73
81
  cucumber (~> 1.3.20)
74
82
  cucumber_factory!
75
83
  database_cleaner (~> 1.0.0)
76
84
  factory_bot (< 5)
77
85
  gemika
78
- mysql2
86
+ pg (< 1)
79
87
  rake (>= 10.0.4)
80
88
  rspec (> 3.0)
81
89
 
data/Gemfile.cucumber-2.4 CHANGED
@@ -4,7 +4,7 @@ source 'https://rubygems.org'
4
4
  gem 'cucumber', '~> 2.4.0'
5
5
  gem 'activesupport', '~> 4.2.0'
6
6
  gem 'activerecord', '~> 4.2.0'
7
- gem 'mysql2'
7
+ gem 'pg', ' < 1'
8
8
 
9
9
  # Development dependencies
10
10
  gem 'rspec', '~> 3.0'
@@ -14,6 +14,7 @@ gem 'gemika'
14
14
 
15
15
  # Test dependencies
16
16
  gem 'factory_bot', '< 5' # 5.0 requires Ruby >= 2.3
17
+ gem 'carrierwave', '~> 1.0' # 2.0 requires Rails >= 5 and Ruby >= 2.2
17
18
 
18
19
  # Gem under test
19
20
  gem 'cucumber_factory', :path => '.'
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- cucumber_factory (2.1.0)
4
+ cucumber_factory (2.4.0)
5
5
  activerecord
6
6
  activesupport
7
7
  cucumber
@@ -24,6 +24,10 @@ GEM
24
24
  tzinfo (~> 1.1)
25
25
  arel (6.0.4)
26
26
  builder (3.2.3)
27
+ carrierwave (1.2.3)
28
+ activemodel (>= 4.0.0)
29
+ activesupport (>= 4.0.0)
30
+ mime-types (>= 1.16)
27
31
  concurrent-ruby (1.0.5)
28
32
  cucumber (2.4.0)
29
33
  builder (>= 2.1.2)
@@ -42,14 +46,17 @@ GEM
42
46
  diff-lcs (1.3)
43
47
  factory_bot (4.11.1)
44
48
  activesupport (>= 3.0.0)
45
- gemika (0.3.2)
49
+ gemika (0.5.0)
46
50
  gherkin (4.1.3)
47
51
  i18n (0.9.5)
48
52
  concurrent-ruby (~> 1.0)
53
+ mime-types (3.2.2)
54
+ mime-types-data (~> 3.2015)
55
+ mime-types-data (3.2018.0812)
49
56
  minitest (5.11.3)
50
57
  multi_json (1.13.1)
51
58
  multi_test (0.1.2)
52
- mysql2 (0.4.10)
59
+ pg (0.21.0)
53
60
  rake (12.3.0)
54
61
  rspec (3.7.0)
55
62
  rspec-core (~> 3.7.0)
@@ -74,12 +81,13 @@ PLATFORMS
74
81
  DEPENDENCIES
75
82
  activerecord (~> 4.2.0)
76
83
  activesupport (~> 4.2.0)
84
+ carrierwave (~> 1.0)
77
85
  cucumber (~> 2.4.0)
78
86
  cucumber_factory!
79
87
  database_cleaner
80
88
  factory_bot (< 5)
81
89
  gemika
82
- mysql2
90
+ pg (< 1)
83
91
  rake
84
92
  rspec (~> 3.0)
85
93
 
data/Gemfile.cucumber-3.0 CHANGED
@@ -4,7 +4,7 @@ source 'https://rubygems.org'
4
4
  gem 'cucumber', '~> 3.0.0'
5
5
  gem 'activesupport', '~> 5.0.0'
6
6
  gem 'activerecord', '~> 5.0.0'
7
- gem 'mysql2'
7
+ gem 'pg', ' < 1'
8
8
 
9
9
  # Development dependencies
10
10
  gem 'rspec', '~> 3.0'
@@ -14,6 +14,7 @@ gem 'gemika'
14
14
 
15
15
  # Test dependencies
16
16
  gem 'factory_bot'
17
+ gem 'carrierwave'
17
18
 
18
19
  # Gem under test
19
20
  gem 'cucumber_factory', :path => '.'
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- cucumber_factory (2.1.0)
4
+ cucumber_factory (2.4.0)
5
5
  activerecord
6
6
  activesupport
7
7
  cucumber
@@ -24,6 +24,10 @@ GEM
24
24
  arel (7.1.4)
25
25
  backports (3.11.1)
26
26
  builder (3.2.3)
27
+ carrierwave (1.2.3)
28
+ activemodel (>= 4.0.0)
29
+ activesupport (>= 4.0.0)
30
+ mime-types (>= 1.16)
27
31
  concurrent-ruby (1.0.5)
28
32
  cucumber (3.0.2)
29
33
  builder (>= 2.1.2)
@@ -47,14 +51,17 @@ GEM
47
51
  diff-lcs (1.3)
48
52
  factory_bot (5.1.1)
49
53
  activesupport (>= 4.2.0)
50
- gemika (0.3.2)
54
+ gemika (0.5.0)
51
55
  gherkin (4.1.3)
52
56
  i18n (0.9.5)
53
57
  concurrent-ruby (~> 1.0)
58
+ mime-types (3.2.2)
59
+ mime-types-data (~> 3.2015)
60
+ mime-types-data (3.2018.0812)
54
61
  minitest (5.11.3)
55
62
  multi_json (1.13.1)
56
63
  multi_test (0.1.2)
57
- mysql2 (0.4.10)
64
+ pg (0.21.0)
58
65
  rake (12.3.0)
59
66
  rspec (3.7.0)
60
67
  rspec-core (~> 3.7.0)
@@ -79,12 +86,13 @@ PLATFORMS
79
86
  DEPENDENCIES
80
87
  activerecord (~> 5.0.0)
81
88
  activesupport (~> 5.0.0)
89
+ carrierwave
82
90
  cucumber (~> 3.0.0)
83
91
  cucumber_factory!
84
92
  database_cleaner
85
93
  factory_bot
86
94
  gemika
87
- mysql2
95
+ pg (< 1)
88
96
  rake
89
97
  rspec (~> 3.0)
90
98
 
data/Gemfile.cucumber-3.1 CHANGED
@@ -4,7 +4,7 @@ source 'https://rubygems.org'
4
4
  gem 'cucumber', '~> 3.1.0'
5
5
  gem 'activesupport', '~> 5.1.0'
6
6
  gem 'activerecord', '~> 5.1.0'
7
- gem 'mysql2'
7
+ gem 'pg'
8
8
 
9
9
  # Development dependencies
10
10
  gem 'rspec', '~> 3.0'
@@ -14,6 +14,7 @@ gem 'gemika'
14
14
 
15
15
  # Test dependencies
16
16
  gem 'factory_bot'
17
+ gem 'carrierwave'
17
18
 
18
19
  # Gem under test
19
20
  gem 'cucumber_factory', :path => '.'
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- cucumber_factory (2.1.0)
4
+ cucumber_factory (2.4.0)
5
5
  activerecord
6
6
  activesupport
7
7
  cucumber
@@ -24,6 +24,10 @@ GEM
24
24
  arel (8.0.0)
25
25
  backports (3.11.1)
26
26
  builder (3.2.3)
27
+ carrierwave (1.2.3)
28
+ activemodel (>= 4.0.0)
29
+ activesupport (>= 4.0.0)
30
+ mime-types (>= 1.16)
27
31
  concurrent-ruby (1.0.5)
28
32
  cucumber (3.1.0)
29
33
  builder (>= 2.1.2)
@@ -47,14 +51,17 @@ GEM
47
51
  diff-lcs (1.3)
48
52
  factory_bot (5.1.1)
49
53
  activesupport (>= 4.2.0)
50
- gemika (0.3.2)
54
+ gemika (0.5.0)
51
55
  gherkin (5.0.0)
52
56
  i18n (0.9.5)
53
57
  concurrent-ruby (~> 1.0)
58
+ mime-types (3.2.2)
59
+ mime-types-data (~> 3.2015)
60
+ mime-types-data (3.2018.0812)
54
61
  minitest (5.11.3)
55
62
  multi_json (1.13.1)
56
63
  multi_test (0.1.2)
57
- mysql2 (0.4.10)
64
+ pg (1.2.3)
58
65
  rake (12.3.0)
59
66
  rspec (3.7.0)
60
67
  rspec-core (~> 3.7.0)
@@ -79,12 +86,13 @@ PLATFORMS
79
86
  DEPENDENCIES
80
87
  activerecord (~> 5.1.0)
81
88
  activesupport (~> 5.1.0)
89
+ carrierwave
82
90
  cucumber (~> 3.1.0)
83
91
  cucumber_factory!
84
92
  database_cleaner
85
93
  factory_bot
86
94
  gemika
87
- mysql2
95
+ pg
88
96
  rake
89
97
  rspec (~> 3.0)
90
98
 
@@ -0,0 +1,20 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Runtime dependencies
4
+ gem 'cucumber', '~> 4.1.0'
5
+ gem 'activesupport', '~> 6.0.0'
6
+ gem 'activerecord', '~> 6.0.0'
7
+ gem 'pg'
8
+
9
+ # Development dependencies
10
+ gem 'rspec', '~> 3.0'
11
+ gem 'rake'
12
+ gem 'database_cleaner'
13
+ gem 'gemika'
14
+
15
+ # Test dependencies
16
+ gem 'factory_bot'
17
+ gem 'carrierwave'
18
+
19
+ # Gem under test
20
+ gem 'cucumber_factory', :path => '.'
@@ -0,0 +1,140 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ cucumber_factory (2.4.0)
5
+ activerecord
6
+ activesupport
7
+ cucumber
8
+ cucumber_priority (>= 0.2.0)
9
+
10
+ GEM
11
+ remote: https://rubygems.org/
12
+ specs:
13
+ activemodel (6.0.3.6)
14
+ activesupport (= 6.0.3.6)
15
+ activerecord (6.0.3.6)
16
+ activemodel (= 6.0.3.6)
17
+ activesupport (= 6.0.3.6)
18
+ activesupport (6.0.3.6)
19
+ concurrent-ruby (~> 1.0, >= 1.0.2)
20
+ i18n (>= 0.7, < 2)
21
+ minitest (~> 5.1)
22
+ tzinfo (~> 1.1)
23
+ zeitwerk (~> 2.2, >= 2.2.2)
24
+ addressable (2.7.0)
25
+ public_suffix (>= 2.0.2, < 5.0)
26
+ builder (3.2.4)
27
+ carrierwave (2.2.1)
28
+ activemodel (>= 5.0.0)
29
+ activesupport (>= 5.0.0)
30
+ addressable (~> 2.6)
31
+ image_processing (~> 1.1)
32
+ marcel (~> 1.0.0)
33
+ mini_mime (>= 0.1.3)
34
+ ssrf_filter (~> 1.0)
35
+ concurrent-ruby (1.1.8)
36
+ cucumber (4.1.0)
37
+ builder (~> 3.2, >= 3.2.3)
38
+ cucumber-core (~> 7.1, >= 7.1.0)
39
+ cucumber-create-meta (~> 1.0.0, >= 1.0.0)
40
+ cucumber-cucumber-expressions (~> 10.1, >= 10.1.0)
41
+ cucumber-gherkin (~> 14.0, >= 14.0.1)
42
+ cucumber-html-formatter (~> 7.0, >= 7.0.0)
43
+ cucumber-messages (~> 12.2, >= 12.2.0)
44
+ cucumber-wire (~> 3.1, >= 3.1.0)
45
+ diff-lcs (~> 1.3, >= 1.3, < 1.4)
46
+ multi_test (~> 0.1, >= 0.1.2)
47
+ sys-uname (~> 1.0, >= 1.0.2)
48
+ cucumber-core (7.1.0)
49
+ cucumber-gherkin (~> 14.0, >= 14.0.1)
50
+ cucumber-messages (~> 12.2, >= 12.2.0)
51
+ cucumber-tag-expressions (~> 2.0, >= 2.0.4)
52
+ cucumber-create-meta (1.0.0)
53
+ cucumber-messages (~> 12.2, >= 12.2.0)
54
+ sys-uname (~> 1.2, >= 1.2.1)
55
+ cucumber-cucumber-expressions (10.3.0)
56
+ cucumber-gherkin (14.2.0)
57
+ cucumber-messages (~> 12.4, >= 12.4.0)
58
+ cucumber-html-formatter (7.2.0)
59
+ cucumber-messages (~> 12.4, >= 12.4.0)
60
+ cucumber-messages (12.4.0)
61
+ protobuf-cucumber (~> 3.10, >= 3.10.8)
62
+ cucumber-tag-expressions (2.0.4)
63
+ cucumber-wire (3.1.0)
64
+ cucumber-core (~> 7.1, >= 7.1.0)
65
+ cucumber-cucumber-expressions (~> 10.1, >= 10.1.0)
66
+ cucumber-messages (~> 12.2, >= 12.2.0)
67
+ cucumber_priority (0.3.2)
68
+ cucumber
69
+ database_cleaner (2.0.1)
70
+ database_cleaner-active_record (~> 2.0.0)
71
+ database_cleaner-active_record (2.0.0)
72
+ activerecord (>= 5.a)
73
+ database_cleaner-core (~> 2.0.0)
74
+ database_cleaner-core (2.0.1)
75
+ diff-lcs (1.3)
76
+ factory_bot (6.1.0)
77
+ activesupport (>= 5.0.0)
78
+ ffi (1.15.0)
79
+ gemika (0.5.0)
80
+ i18n (1.8.9)
81
+ concurrent-ruby (~> 1.0)
82
+ image_processing (1.12.1)
83
+ mini_magick (>= 4.9.5, < 5)
84
+ ruby-vips (>= 2.0.17, < 3)
85
+ marcel (1.0.0)
86
+ middleware (0.1.0)
87
+ mini_magick (4.11.0)
88
+ mini_mime (1.0.3)
89
+ minitest (5.14.4)
90
+ multi_test (0.1.2)
91
+ pg (1.2.3)
92
+ protobuf-cucumber (3.10.8)
93
+ activesupport (>= 3.2)
94
+ middleware
95
+ thor
96
+ thread_safe
97
+ public_suffix (4.0.6)
98
+ rake (13.0.3)
99
+ rspec (3.10.0)
100
+ rspec-core (~> 3.10.0)
101
+ rspec-expectations (~> 3.10.0)
102
+ rspec-mocks (~> 3.10.0)
103
+ rspec-core (3.10.1)
104
+ rspec-support (~> 3.10.0)
105
+ rspec-expectations (3.10.1)
106
+ diff-lcs (>= 1.2.0, < 2.0)
107
+ rspec-support (~> 3.10.0)
108
+ rspec-mocks (3.10.2)
109
+ diff-lcs (>= 1.2.0, < 2.0)
110
+ rspec-support (~> 3.10.0)
111
+ rspec-support (3.10.2)
112
+ ruby-vips (2.1.0)
113
+ ffi (~> 1.12)
114
+ ssrf_filter (1.0.7)
115
+ sys-uname (1.2.2)
116
+ ffi (~> 1.1)
117
+ thor (1.1.0)
118
+ thread_safe (0.3.6)
119
+ tzinfo (1.2.9)
120
+ thread_safe (~> 0.1)
121
+ zeitwerk (2.4.2)
122
+
123
+ PLATFORMS
124
+ ruby
125
+
126
+ DEPENDENCIES
127
+ activerecord (~> 6.0.0)
128
+ activesupport (~> 6.0.0)
129
+ carrierwave
130
+ cucumber (~> 4.1.0)
131
+ cucumber_factory!
132
+ database_cleaner
133
+ factory_bot
134
+ gemika
135
+ pg
136
+ rake
137
+ rspec (~> 3.0)
138
+
139
+ BUNDLED WITH
140
+ 2.1.4