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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fd1d57912b7ba3dc639a4b4166441fe899ebff3e
4
- data.tar.gz: f908eebdca1733ab47236c9f7891b2f8381ba9c1
3
+ metadata.gz: 10070953715c5261bb867ecdf933aa49b42af205
4
+ data.tar.gz: 3d9e890055181b70a78004571b6cdc126c191da2
5
5
  SHA512:
6
- metadata.gz: 4d713250822a9633768ee4d8a003379fad3e98cc50f4ae87f02e254b482709be039d5e9870b4ff88805edb1469cca237be31b744f77612c526cdf70e9c209b55
7
- data.tar.gz: d2f59a9e4178be5534828ccbcbb4d5db6a4b3bcce191ac82446737a25a0d4bfc69c87f3a2e3a8a8ecfd1158d81134a73c6b80827d09a398b2735a375c164829e
6
+ metadata.gz: 8e865b93bf1bd4d1f6274c2529b38be0977b771d1b401926beb531434087888bb73d7b208937dd0479f3aa96e728bc1aa7bb1261af733de4adf9d09614d80f4f
7
+ data.tar.gz: 27c05e76d5c9108313e19083f3fdcc6f851717b0847ec1e95664c0f450a7ea9b1dde382b13f99f0bdb382b43e7776bb9b44d01249cf5e75d1d063b86796fcfd5
@@ -2,6 +2,14 @@
2
2
 
3
3
  * TODO
4
4
 
5
+ ### 1.2.1
6
+
7
+ * Add support for Turnip features
8
+
9
+ https://github.com/ArturT/knapsack/pull/19
10
+
11
+ https://github.com/ArturT/knapsack/compare/v1.2.0...v1.2.1
12
+
5
13
  ### 1.2.0
6
14
 
7
15
  * Add minitest adapter.
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
- until example_group[:parent_example_group].nil?
49
- example_group = example_group[:parent_example_group]
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
@@ -1,3 +1,3 @@
1
1
  module Knapsack
2
- VERSION = '1.2.0'
2
+ VERSION = '1.2.1'
3
3
  end
@@ -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.0
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-05-03 00:00:00.000000000 Z
11
+ date: 2015-07-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake