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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f19257391c98ab628c7d38bfec0c10d72f0a86f1
4
- data.tar.gz: 9155eb43f95aca7d7d8f6c5ca84bfc716f31166a
3
+ metadata.gz: 531959874a16e1703b1a3f00c33ce27c15eb3150
4
+ data.tar.gz: a355c7785ea35ce60667073ab771c361416cd81a
5
5
  SHA512:
6
- metadata.gz: 6b232fef5c7de26e9e9d1aad2e55f76fcee87cc09f79bf7f412a6fb29d37f222f02616f3563c0fa55771c3a61b564f374083c2aa43984ec7ef7b28d30f4b0035
7
- data.tar.gz: 362f31272436c8e7c59838f826fa8c0c548d26370fb84bedf4c18a25f1f1ac4eb13ddefd5d0918a8c109b80da6a377e7bdd07564d581a584ae1faf85fd9bf8fb
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)
@@ -1,3 +1,3 @@
1
1
  module Turnip
2
- VERSION = '3.0.0-beta.4'
2
+ VERSION = '3.0.0-beta.5'
3
3
  end
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
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-10-13 00:00:00.000000000 Z
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