turnip 3.0.0.pre.beta.2 → 3.0.0.pre.beta.3

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: c0b502b56a65a996d87ad7262b06c8f2766a6f76
4
- data.tar.gz: 8d2895b87e0b01423729ae4cae984765325856f5
3
+ metadata.gz: 5c613eb80a564f1b10b6123c92df954d646bb1a1
4
+ data.tar.gz: ea620f1c46a0c0bee233d1870d01be796abad6d6
5
5
  SHA512:
6
- metadata.gz: 8f1b62c64c693630465be6b58f6997ef4a231356c3024a8a6c99f28ced4b11113610413e271e859f2e137cbb99e6517ee365a77b04e5d31d9b8200e0c80fb3f4
7
- data.tar.gz: 8f818d8d209117f591738fc92e223039c029685fec002ddd7333e59e305229b7573fd47873061b5b6be60174bb98e0edbadf97ba6815757071b3e29285fb3e04
6
+ metadata.gz: 988878afccf0d2f4b16d232b874e537ae1cb1f121a73f57f2ba0b269bdee753b22975baf629e49763d55fe6fb8c9c72210240fa7167eba8081c919ec52c0ec0a
7
+ data.tar.gz: 0881c5e09f167002c3410cd1441803d5380f9ef4f3596fd39c527be32ccb94137cb87ad1c66228ae037e37c38e45b6f0a7855ee440748cda7451bde9443255aa
@@ -27,6 +27,13 @@ module Turnip
27
27
  end
28
28
  end
29
29
 
30
+ #
31
+ # @return [Array] Array of tag name
32
+ #
33
+ def tag_names
34
+ tags.map(&:name)
35
+ end
36
+
30
37
  #
31
38
  # Convert for hash to be used in RSpec
32
39
  #
@@ -1,3 +1,3 @@
1
1
  module Turnip
2
- VERSION = '3.0.0-beta.2'
2
+ VERSION = '3.0.0-beta.3'
3
3
  end
@@ -33,6 +33,16 @@ describe Turnip::Builder do
33
33
  end
34
34
  end
35
35
 
36
+ context 'with tags' do
37
+ let(:feature_file) { File.expand_path('../examples/tags.feature', File.dirname(__FILE__)) }
38
+
39
+ it 'extracts tags' do
40
+ expect(feature.tags[0]).to be_instance_of Turnip::Node::Tag
41
+ expect(feature.scenarios[0].tags[0].name).to eq 'cool'
42
+ expect(feature.scenarios[1].tag_names).to eq ['stealthy', 'wicked']
43
+ end
44
+ end
45
+
36
46
  context "with scenario outlines" do
37
47
  let(:feature_file) { File.expand_path('../examples/scenario_outline.feature', File.dirname(__FILE__)) }
38
48
 
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: 3.0.0.pre.beta.2
4
+ version: 3.0.0.pre.beta.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonas Nicklas
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-09-26 00:00:00.000000000 Z
11
+ date: 2016-10-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec