aruba-jbb 0.2.3 → 0.2.4

Sign up to get free protection for your applications and to get access to all the features.
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.2.3"
8
+ gem.version = "0.2.4"
9
9
  gem.name = "aruba-jbb"
10
10
  gem.summary = %Q{CLI Steps for Cucumber}
11
11
  gem.description = %Q{CLI Steps for Cucumber, hand-crafted for you in Aruba}
data/aruba-jbb.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{aruba-jbb}
8
- s.version = "0.2.3"
8
+ s.version = "0.2.4"
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", "James B. Byrne"]
12
- s.date = %q{2010-07-26}
12
+ s.date = %q{2010-07-28}
13
13
  s.description = %q{CLI Steps for Cucumber, hand-crafted for you in Aruba}
14
14
  s.email = %q{cukes@googlegroups.com}
15
15
  s.extra_rdoc_files = [
@@ -61,32 +61,56 @@ Feature: file system commands
61
61
  And I do have an empty file named "lorem/ipsum/sit"
62
62
  And I do have an empty file named "lorem/ipsum/amet"
63
63
  Then the following files should exist:
64
- | lorem/ipsum/dolor |
65
- | lorem/ipsum/amet |
64
+ | lorem/ipsum/dolor |
65
+ | lorem/ipsum/amet |
66
66
 
67
67
  Scenario: Check for absence of files
68
68
  Then the following files should not exist:
69
- | lorem/ipsum/dolor |
69
+ | lorem/ipsum/dolor |
70
70
 
71
71
  Scenario: Check for presence of a subset of directories
72
72
  Given I do have a directory named "foo/bar"
73
73
  And I do have a directory named "foo/bla"
74
74
  Then the following directories should exist:
75
- | foo/bar |
76
- | foo/bla |
75
+ | foo/bar |
76
+ | foo/bla |
77
77
 
78
- Scenario: Check for absence of a subset of directories
79
- Then the following directories should not exist:
80
- | foo/bar |
81
- | foo/bla |
82
-
78
+ Scenario: Cross-check for absence and presence of directories and files
79
+ Given I do have a directory named "bar/foo"
80
+ And I do have an empty file named "sna/fu"
81
+
82
+ Then the following directories should exist:
83
+ | bar/foo |
84
+ And the following files should exist:
85
+ | sna/fu |
86
+
87
+ But the following directories should not exist:
88
+ | foo/bar |
89
+ | foo/bla |
90
+ | sna/fu |
91
+
92
+ And the following files should not exist:
93
+ | bar/foo |
94
+ | bar/ten |
95
+ | foo/one |
96
+
83
97
  Scenario: Check file contents
84
98
  Given I do have a file named "foo" with:
85
99
  """
86
100
  hello world
101
+ Hi there
87
102
  """
88
103
  Then the file "foo" should contain "hello world"
89
- And the file "foo" should not contain "HELLO WORLD"
104
+ And the file "foo" should contain:
105
+ """
106
+ hello world
107
+ Hi there
108
+ """
109
+ Then the file "foo" should not contain "HELLO WORLD"
110
+ And the file "foo" should not contain:
111
+ """
112
+ HELLO WORLD
113
+ """
90
114
 
91
115
  Scenario: @aruba-tmpdir flag runs scenario in tmp/aruba
92
116
  When I run "ruby -e \"require 'fileutils'; puts FileUtils.pwd\""
@@ -228,6 +228,16 @@ When /file "([^\"]*)" should contain "([^\"]*)"$/ do |file, partial_content|
228
228
  end
229
229
 
230
230
 
231
+ When /file "([^\"]*)" should contain:$/ do |file, partial_content|
232
+ check_file_content(file, partial_content, true)
233
+ end
234
+
235
+
231
236
  When /file "([^\"]*)" should not contain "([^\"]*)"$/ do |file, partial_content|
232
237
  check_file_content(file, partial_content, false)
233
238
  end
239
+
240
+
241
+ When /file "([^\"]*)" should not contain:$/ do |file, partial_content|
242
+ check_file_content(file, partial_content, false)
243
+ end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aruba-jbb
3
3
  version: !ruby/object:Gem::Version
4
- hash: 17
4
+ hash: 31
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 3
10
- version: 0.2.3
9
+ - 4
10
+ version: 0.2.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - "Aslak Helles\xC3\xB8y"
@@ -17,7 +17,7 @@ autorequire:
17
17
  bindir: bin
18
18
  cert_chain: []
19
19
 
20
- date: 2010-07-26 00:00:00 -04:00
20
+ date: 2010-07-28 00:00:00 -04:00
21
21
  default_executable:
22
22
  dependencies:
23
23
  - !ruby/object:Gem::Dependency