aruba-doubles 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = 'aruba-doubles'
5
- s.version = '0.1.0'
5
+ s.version = '0.1.1'
6
6
  s.authors = ["Björn Albers"]
7
7
  s.email = ["bjoernalbers@googlemail.com"]
8
8
  s.description = 'Stub command line applications with Cucumber'
@@ -73,19 +73,19 @@ Feature: Double command line applications
73
73
  """
74
74
 
75
75
  Scenario: Double with expected arguments
76
- Given a double of "ls --la" with stdout:
76
+ Given a double of "foo --bar baz" with stdout:
77
77
  """
78
78
  hello, world.
79
79
  """
80
- When I run `ls`
80
+ When I run `foo`
81
81
  Then the exit status should not be 0
82
82
  And the stdout should contain exactly:
83
83
  """
84
84
  """
85
85
  And the stderr should contain exactly:
86
86
  """
87
- expected: ls --la
88
- got: ls
87
+ expected: foo --bar baz
88
+ got: foo
89
89
 
90
90
  """
91
91
 
@@ -36,8 +36,8 @@ module ArubaDoubles
36
36
  f.puts "#!/usr/bin/env ruby"
37
37
  f.puts "# Doubled command line application by aruba-doubles\n"
38
38
  f.puts "unless ARGV.to_s == \"#{args}\""
39
- f.puts " warn \"expected: #{filename} #{args}\""
40
- f.puts " warn \" got: #{filename} \#{ARGV}\""
39
+ f.puts " warn \"expected: #{filename} #{args.join(' ')}\""
40
+ f.puts " warn \" got: #{filename} \#{ARGV.join(' ')}\""
41
41
  f.puts " exit(1)"
42
42
  f.puts "end"
43
43
  f.puts "puts ([File.basename(__FILE__)] + ARGV).join(' ')" if @repeat_arguments
@@ -3,6 +3,6 @@ After do
3
3
  end
4
4
 
5
5
  Before('@repeat_arguments') do
6
- warn(%{\e[35m The @repeat_arguments tag is deprecated and will be removed in v0.1.1. Please use the new mock feature to check for arguments (see README)!\e[0m})
6
+ warn(%{\e[35m The @repeat_arguments tag is deprecated and will soon be removed. Please use the new mock feature to check for arguments (see README)!\e[0m})
7
7
  @repeat_arguments = true
8
8
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aruba-doubles
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
4
+ hash: 25
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 0
10
- version: 0.1.0
9
+ - 1
10
+ version: 0.1.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - "Bj\xC3\xB6rn Albers"
@@ -105,7 +105,7 @@ rubyforge_project:
105
105
  rubygems_version: 1.8.8
106
106
  signing_key:
107
107
  specification_version: 3
108
- summary: aruba-doubles-0.1.0
108
+ summary: aruba-doubles-0.1.1
109
109
  test_files:
110
110
  - features/double_cli_apps.feature
111
111
  - features/environment-friendly.feature