turnip 3.0.0.pre.beta.4 → 3.0.0.pre.beta.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/examples/blank.feature +1 -0
- data/lib/turnip/rspec.rb +2 -0
- data/lib/turnip/version.rb +1 -1
- data/spec/builder_spec.rb +9 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 531959874a16e1703b1a3f00c33ce27c15eb3150
|
4
|
+
data.tar.gz: a355c7785ea35ce60667073ab771c361416cd81a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 435a2d7cbc0500c8f4d8a554e7383a7fca468dba3b36b41acd36be240f60323ab5fdff2030e64c89befce390092d854f96eefa35a79bd2719bde2e32c97d0774
|
7
|
+
data.tar.gz: 18ebc4f1ecc20565fa8f4baabbd7dd9f1eb9beaee98c4ce152e48875b161ad22e024946cac7113e19664d1f34a6a1e652782001edad26c321d8050eb66524149
|
@@ -0,0 +1 @@
|
|
1
|
+
# no feature file
|
data/lib/turnip/rspec.rb
CHANGED
@@ -66,6 +66,8 @@ module Turnip
|
|
66
66
|
def run(feature_file)
|
67
67
|
feature = Turnip::Builder.build(feature_file)
|
68
68
|
|
69
|
+
return nil if feature.nil?
|
70
|
+
|
69
71
|
instance_eval <<-EOS, feature_file, feature.line
|
70
72
|
context = ::RSpec.describe feature.name, feature.metadata_hash
|
71
73
|
run_feature(context, feature, feature_file)
|
data/lib/turnip/version.rb
CHANGED
data/spec/builder_spec.rb
CHANGED
@@ -3,6 +3,15 @@ require 'spec_helper'
|
|
3
3
|
describe Turnip::Builder do
|
4
4
|
let(:feature) { Turnip::Builder.build(feature_file) }
|
5
5
|
|
6
|
+
context 'blank file' do
|
7
|
+
let(:feature_file) { File.expand_path('../examples/blank.feature', File.dirname(__FILE__)) }
|
8
|
+
|
9
|
+
it 'has no feature' do
|
10
|
+
feature.should eq nil
|
11
|
+
end
|
12
|
+
|
13
|
+
end
|
14
|
+
|
6
15
|
context 'simple scenarios' do
|
7
16
|
let(:feature_file) { File.expand_path('../examples/simple_feature.feature', File.dirname(__FILE__)) }
|
8
17
|
let(:steps) { feature.scenarios.first.steps }
|
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.
|
4
|
+
version: 3.0.0.pre.beta.5
|
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-
|
11
|
+
date: 2016-11-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|
@@ -89,6 +89,7 @@ files:
|
|
89
89
|
- examples/ambiguous.feature
|
90
90
|
- examples/autoload_steps.feature
|
91
91
|
- examples/backgrounds.feature
|
92
|
+
- examples/blank.feature
|
92
93
|
- examples/errors.feature
|
93
94
|
- examples/interpolation.feature
|
94
95
|
- examples/multiline_string.feature
|