aruba 0.1.5 → 0.1.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,7 @@
1
+ == 0.1.6
2
+ * When /^I successfully run "(.*)"$/ now prints the combined output if exit status is not 0. (Aslak Hellesøy)
3
+ * Add bundle to list of common ruby scripts. (Aslak Hellesøy)
4
+
1
5
  == 0.1.5
2
6
  * Added ability to map rvm versions to a specific version with config/aruba-rvm.yml. (Aslak Hellesøy)
3
7
  * Check for presence of files. (Aslak Hellesøy)
data/Rakefile CHANGED
@@ -5,7 +5,7 @@ require 'rake'
5
5
  begin
6
6
  require 'jeweler'
7
7
  Jeweler::Tasks.new do |gem|
8
- gem.version = "0.1.5"
8
+ gem.version = "0.1.6"
9
9
  gem.name = "aruba"
10
10
  gem.summary = %Q{CLI Steps for Cucumber}
11
11
  gem.description = %Q{CLI Steps for Cucumber, hand-crafted for you in Aruba}
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{aruba}
8
- s.version = "0.1.5"
8
+ s.version = "0.1.6"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Aslak Helles\303\270y", "David Chelimsky"]
@@ -18,4 +18,4 @@ Feature: exit statuses
18
18
 
19
19
  Scenario: Unsuccessfully run something
20
20
  When I do aruba I successfully run "ruby -e 'exit 10'"
21
- Then aruba should fail with "got: 10"
21
+ Then aruba should fail with "Exit status was 10"
@@ -121,8 +121,10 @@ module Api
121
121
  end
122
122
  end
123
123
 
124
+ COMMON_RUBY_SCRIPTS = /^(?:bundle|cucumber|gem|jeweler|rails|rake|rspec|spec)\s/
125
+
124
126
  def detect_ruby_script(cmd)
125
- if cmd =~ /^(?:cucumber|gem|jeweler|rails|rake|rspec|spec)\s/
127
+ if cmd =~ COMMON_RUBY_SCRIPTS
126
128
  "ruby -S #{cmd}"
127
129
  else
128
130
  cmd
@@ -53,7 +53,9 @@ end
53
53
 
54
54
  When /^I successfully run "(.*)"$/ do |cmd|
55
55
  run(unescape(cmd))
56
- @last_exit_status.should == 0
56
+ if(@last_exit_status != 0)
57
+ fail("Exit status was #{@last_exit_status}. Output:\n#{combined_output}")
58
+ end
57
59
  end
58
60
 
59
61
  Then /^I should see "([^\"]*)"$/ do |partial_output|
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- - 5
9
- version: 0.1.5
8
+ - 6
9
+ version: 0.1.6
10
10
  platform: ruby
11
11
  authors:
12
12
  - "Aslak Helles\xC3\xB8y"