turnip 4.4.0 → 4.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.envrc +1 -0
- data/CHANGELOG.md +6 -0
- data/README.md +5 -3
- data/examples/tags.feature +12 -0
- data/flake.lock +24 -0
- data/flake.nix +30 -0
- data/lib/turnip/node/scenario_outline.rb +1 -0
- data/lib/turnip/version.rb +1 -1
- data/spec/builder_spec.rb +2 -0
- data/spec/integration_spec.rb +1 -1
- metadata +6 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 858d3655d11832f0679cd4ef003f9ee9c88a17df303736bc3117caffc8cc62a0
|
4
|
+
data.tar.gz: 32c308e81c49dacfed48ca6d09a035d0f243b959ac289ba8d89cff27192d44ce
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 824c0258f5cbfbfee5609cf27c60d3e2793f84889a2b1b99c0a7bd3839b59b554daeb2272a0b9bb42388a31f88d63558d747c7929f54625b0b8fb8d271a7bd04
|
7
|
+
data.tar.gz: a57d0d377021932476f7f5e9ea4272ac3a82135f75e93df0b8d9021f63870fb0c8d6f947422a9ecd18cf799305170adc973b9a65cadc6f931238d1616c6aa080
|
data/.envrc
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
use flake
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -48,8 +48,10 @@ Please create a topic branch for every separate change you make.
|
|
48
48
|
|
49
49
|
### 1. Ruby
|
50
50
|
|
51
|
-
-
|
52
|
-
|
51
|
+
Supports Non-EOL Rubies:
|
52
|
+
|
53
|
+
- Support Ruby 2.7 or higher
|
54
|
+
- Does not support Ruby (or does not work) 2.6.X or earlier
|
53
55
|
|
54
56
|
### 2. RSpec
|
55
57
|
|
@@ -255,7 +257,7 @@ Before loading your `spec_helper`, Turnip also tries to load a file called
|
|
255
257
|
You might find it beneficial to load your steps from this file so that they
|
256
258
|
don't have to be loaded when you run your other tests.
|
257
259
|
|
258
|
-
If you use Turnip with [rspec-rails](https://github.com/rspec/rspec-rails)
|
260
|
+
If you use Turnip with [rspec-rails](https://github.com/rspec/rspec-rails), most configuration written to `rails_helper.rb` but not `spec_helper.rb`. So you should write to `turnip_helper` like this:
|
259
261
|
|
260
262
|
```ruby
|
261
263
|
require 'rails_helper'
|
data/examples/tags.feature
CHANGED
@@ -12,3 +12,15 @@ Feature: With tags
|
|
12
12
|
When I attack it
|
13
13
|
And I attack it
|
14
14
|
Then it should die
|
15
|
+
|
16
|
+
@variety
|
17
|
+
Scenario Outline: With tag on scenario outline
|
18
|
+
Given there is a <Monster Type> monster
|
19
|
+
When I attack it
|
20
|
+
And I attack it
|
21
|
+
Then it should die
|
22
|
+
|
23
|
+
Examples:
|
24
|
+
| Monster Type |
|
25
|
+
| weak |
|
26
|
+
| strong |
|
data/flake.lock
ADDED
@@ -0,0 +1,24 @@
|
|
1
|
+
{
|
2
|
+
"nodes": {
|
3
|
+
"nixpkgs": {
|
4
|
+
"locked": {
|
5
|
+
"lastModified": 1697723726,
|
6
|
+
"narHash": "sha256-SaTWPkI8a5xSHX/rrKzUe+/uVNy6zCGMXgoeMb7T9rg=",
|
7
|
+
"path": "/nix/store/4jfc6vrkmq7z5pb651jh5b4kra5f1kwp-source",
|
8
|
+
"rev": "7c9cc5a6e5d38010801741ac830a3f8fd667a7a0",
|
9
|
+
"type": "path"
|
10
|
+
},
|
11
|
+
"original": {
|
12
|
+
"id": "nixpkgs",
|
13
|
+
"type": "indirect"
|
14
|
+
}
|
15
|
+
},
|
16
|
+
"root": {
|
17
|
+
"inputs": {
|
18
|
+
"nixpkgs": "nixpkgs"
|
19
|
+
}
|
20
|
+
}
|
21
|
+
},
|
22
|
+
"root": "root",
|
23
|
+
"version": 7
|
24
|
+
}
|
data/flake.nix
ADDED
@@ -0,0 +1,30 @@
|
|
1
|
+
{
|
2
|
+
description = "Ruby dev environment";
|
3
|
+
|
4
|
+
inputs = { };
|
5
|
+
|
6
|
+
outputs = { self, nixpkgs }:
|
7
|
+
let
|
8
|
+
# Helper to provide system-specific attributes
|
9
|
+
forAllSupportedSystems = f: nixpkgs.lib.genAttrs supportedSystems (system: f {
|
10
|
+
pkgs = import nixpkgs { inherit system; };
|
11
|
+
});
|
12
|
+
|
13
|
+
supportedSystems = [
|
14
|
+
"aarch64-darwin"
|
15
|
+
"aarch64-linux"
|
16
|
+
"x86_64-darwin"
|
17
|
+
"x86_64-linux"
|
18
|
+
];
|
19
|
+
in
|
20
|
+
|
21
|
+
{
|
22
|
+
devShells = forAllSupportedSystems ({ pkgs }: {
|
23
|
+
default = pkgs.mkShell {
|
24
|
+
packages = with pkgs; [
|
25
|
+
ruby_3_2
|
26
|
+
];
|
27
|
+
};
|
28
|
+
});
|
29
|
+
};
|
30
|
+
}
|
data/lib/turnip/version.rb
CHANGED
data/spec/builder_spec.rb
CHANGED
@@ -48,6 +48,8 @@ describe Turnip::Builder do
|
|
48
48
|
expect(feature.tags[0]).to be_instance_of Turnip::Node::Tag
|
49
49
|
expect(feature.scenarios[0].tags[0].name).to eq 'cool'
|
50
50
|
expect(feature.scenarios[1].tag_names).to eq ['stealthy', 'wicked']
|
51
|
+
expect(feature.scenarios[2].tag_names).to eq ['variety']
|
52
|
+
expect(feature.scenarios[3].tag_names).to eq ['variety']
|
51
53
|
end
|
52
54
|
end
|
53
55
|
|
data/spec/integration_spec.rb
CHANGED
@@ -12,7 +12,7 @@ describe 'The CLI', :type => :integration do
|
|
12
12
|
end
|
13
13
|
|
14
14
|
it "prints out failures and successes" do
|
15
|
-
@result.should include('
|
15
|
+
@result.should include('48 examples, 4 failures, 7 pending')
|
16
16
|
end
|
17
17
|
|
18
18
|
it "includes features in backtraces" do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: turnip
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.4.
|
4
|
+
version: 4.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jonas Nicklas
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 1980-01-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|
@@ -94,6 +94,7 @@ executables: []
|
|
94
94
|
extensions: []
|
95
95
|
extra_rdoc_files: []
|
96
96
|
files:
|
97
|
+
- ".envrc"
|
97
98
|
- ".github/workflows/test.yml"
|
98
99
|
- ".gitignore"
|
99
100
|
- ".rspec"
|
@@ -133,6 +134,8 @@ files:
|
|
133
134
|
- examples/tags.feature
|
134
135
|
- examples/with_backticks.feature
|
135
136
|
- examples/with_comments.feature
|
137
|
+
- flake.lock
|
138
|
+
- flake.nix
|
136
139
|
- gemfiles/Gemfile-rspec-3.11.x
|
137
140
|
- gemfiles/Gemfile-rspec-3.12.x
|
138
141
|
- lib/turnip.rb
|
@@ -188,7 +191,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
188
191
|
- !ruby/object:Gem::Version
|
189
192
|
version: '0'
|
190
193
|
requirements: []
|
191
|
-
rubygems_version: 3.
|
194
|
+
rubygems_version: 3.4.19
|
192
195
|
signing_key:
|
193
196
|
specification_version: 4
|
194
197
|
summary: Gherkin extension for RSpec
|