knapsack 1.2.0 → 1.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/README.md +1 -0
- data/lib/knapsack/adapters/rspec_adapter.rb +5 -2
- data/lib/knapsack/version.rb +1 -1
- data/spec/knapsack/adapters/rspec_adapter_spec.rb +16 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 10070953715c5261bb867ecdf933aa49b42af205
|
4
|
+
data.tar.gz: 3d9e890055181b70a78004571b6cdc126c191da2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8e865b93bf1bd4d1f6274c2529b38be0977b771d1b401926beb531434087888bb73d7b208937dd0479f3aa96e728bc1aa7bb1261af733de4adf9d09614d80f4f
|
7
|
+
data.tar.gz: 27c05e76d5c9108313e19083f3fdcc6f851717b0847ec1e95664c0f450a7ea9b1dde382b13f99f0bdb382b43e7776bb9b44d01249cf5e75d1d063b86796fcfd5
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -482,3 +482,4 @@ Many thanks to [Małgorzata Nowak](https://github.com/informatykgosia) for beaut
|
|
482
482
|
* Travis CI | [Parallelizing RSpec and Cucumber on multiple VMs](http://docs.travis-ci.com/user/speeding-up-the-build/#Parallelizing-RSpec-and-Cucumber-on-multiple-VMs)
|
483
483
|
* Semaphore | [Running RSpec specs in parallel](https://semaphoreapp.com/docs/running-rspec-specs-in-threads.html)
|
484
484
|
* Semaphore | [Running Cucumber scenarios in parallel](https://semaphoreapp.com/docs/running-cucumber-scenarios-in-threads.html)
|
485
|
+
* Buildkite | [Libraries](https://buildkite.com/docs/guides/parallelizing-builds#libraries)
|
@@ -45,9 +45,12 @@ module Knapsack
|
|
45
45
|
end
|
46
46
|
|
47
47
|
def self.test_path(example_group)
|
48
|
-
|
49
|
-
|
48
|
+
unless example_group[:turnip]
|
49
|
+
until example_group[:parent_example_group].nil?
|
50
|
+
example_group = example_group[:parent_example_group]
|
51
|
+
end
|
50
52
|
end
|
53
|
+
|
51
54
|
example_group[:file_path]
|
52
55
|
end
|
53
56
|
end
|
data/lib/knapsack/version.rb
CHANGED
@@ -94,5 +94,21 @@ describe Knapsack::Adapters::RspecAdapter do
|
|
94
94
|
subject { described_class.test_path(current_example_metadata) }
|
95
95
|
|
96
96
|
it { should eql 'a_spec.rb' }
|
97
|
+
|
98
|
+
context 'with turnip features' do
|
99
|
+
let(:current_example_metadata) do
|
100
|
+
{
|
101
|
+
file_path: "./spec/features/logging_in.feature",
|
102
|
+
turnip: true,
|
103
|
+
parent_example_group: {
|
104
|
+
file_path: "gems/turnip-1.2.4/lib/turnip/rspec.rb",
|
105
|
+
}
|
106
|
+
}
|
107
|
+
end
|
108
|
+
|
109
|
+
subject { described_class.test_path(current_example_metadata) }
|
110
|
+
|
111
|
+
it { should eql './spec/features/logging_in.feature' }
|
112
|
+
end
|
97
113
|
end
|
98
114
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: knapsack
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ArturT
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-07-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|