kender 0.2.3 → 0.2.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: d0211b87a3072d16a954f74ad8cbeaca660693b7
4
- data.tar.gz: c8417a8332affbb18e511d20eb4c4b87330834de
3
+ metadata.gz: f64e13e70878239c07d6cb35468023144bd10acc
4
+ data.tar.gz: 435ad1f5d1b821be177294481b6b14b391599f0e
5
5
  SHA512:
6
- metadata.gz: bcdbfd615fbc5a71de9cf87707efb5d9d254d76debbc33e8f844c44d9148ca081252eaf5c86468a84f7a2717590cf8ffe7020b60f155b03dba3da5e26bd5481c
7
- data.tar.gz: 21787895b5b9d2d74c9a8987b70a96ca7fb0bde1086f9e3bbd3eb42ca82b26bce1e06a683713a964975c780c66495698a76071bd90a71060321a5e4845a609b1
6
+ metadata.gz: af96f7ce712411483c37d63b19e776cc8fde3ffa1b8d482496f6fe47c02a81650b3f33e3b546056a3c7d987dec6d792115b2af6f7c39fd558a0ad2bbeddba4e7
7
+ data.tar.gz: 52c4015058d0d1146acee2c42710be47c928f608a4a2555e880b5dcaf1ae543ad54d1c94321179ab51536628d5d8369b30150f74aa9e584f6929e2110979c051
@@ -1,3 +1,4 @@
1
+ @redo_bundle
1
2
  Feature: Scenarios
2
3
  Kender is able to run scenarios using the cucumber tool.
3
4
 
@@ -6,11 +7,13 @@ Feature: Scenarios
6
7
  """
7
8
  source 'https://rubygems.org'
8
9
  gem 'cucumber', '~>1.3'
10
+ gem 'kender', path: '../../' # needed to use the latest code
11
+ gem 'dice_bag', '~>0.7'
9
12
  """
10
13
  And I run `bundle install`
11
14
 
12
15
  Scenario: The project has no scenarios to run but cucumber is executed
13
- When I run `rake ci`
16
+ When I run `bundle exec rake ci`
14
17
  Then it should pass with:
15
18
  """
16
19
  0 scenarios
@@ -24,7 +27,7 @@ Feature: Scenarios
24
27
  This is a test of my product
25
28
  Scenario: first test
26
29
  """
27
- When I run `rake ci`
30
+ When I run `bundle exec rake ci`
28
31
  Then it should pass with:
29
32
  """
30
33
  1 scenario (1 passed)
@@ -45,5 +48,5 @@ Feature: Scenarios
45
48
  raise 'failed'
46
49
  end
47
50
  """
48
- When I run `rake ci`
51
+ When I run `bundle exec rake ci`
49
52
  Then the exit status should not be 0
@@ -43,7 +43,7 @@ module Kender
43
43
  private
44
44
 
45
45
  def in_gemfile?(gem_name)
46
- Bundler.definition.specs.any?{ |spec| spec.name == gem_name }
46
+ Bundler.definition.dependencies.any?{ |dep| dep.name == gem_name }
47
47
  end
48
48
 
49
49
  end
@@ -2,14 +2,15 @@ module Kender
2
2
  class Cucumber < Command
3
3
 
4
4
  def available?
5
- in_gemfile?("cucumber") and not(ENV['VALIDATE_PROJECT'])
5
+ in_gemfile?('cucumber') and not(ENV['VALIDATE_PROJECT'])
6
6
  end
7
7
 
8
8
  def command
9
+ extra_env = ENV['HEADED_BROWSER'] ? "HEADED_BROWSER=#{ENV['HEADED_BROWSER']}" : ''
9
10
  if defined?(ParallelTests)
10
- 'bundle exec rake parallel:features'
11
+ "#{extra_env} bundle exec rake parallel:features"
11
12
  else
12
- 'bundle exec cucumber'
13
+ "#{extra_env} bundle exec cucumber"
13
14
  end
14
15
  end
15
16
 
@@ -1,3 +1,3 @@
1
1
  module Kender
2
- VERSION = '0.2.3'
2
+ VERSION = '0.2.5'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kender
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Smith
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2014-07-25 00:00:00.000000000 Z
14
+ date: 2014-09-04 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: bundler