haiti 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore ADDED
@@ -0,0 +1 @@
1
+ *.gem
@@ -1,7 +1,7 @@
1
1
  Given('the file "$filename" "$body"') { |filename, body| Haiti::CommandLineHelpers.write_file filename, eval_curlies(body) }
2
2
  Given('the file "$filename":') { |filename, body| Haiti::CommandLineHelpers.write_file filename, eval_curlies(body) }
3
- Given('I have the stdin content "$content"') { |content| @stdin_data = eval_curlies(content) }
4
- Given('I have the stdin content:') { |content| @stdin_data = eval_curlies(content) }
3
+ Given('the stdin content "$content"') { |content| @stdin_data = eval_curlies(content) }
4
+ Given('the stdin content:') { |content| @stdin_data = eval_curlies(content) }
5
5
  When('I run "$command"') { |command| @last_executed = Haiti::CommandLineHelpers.execute command, @stdin_data }
6
6
  When("I run '$command'") { |command| @last_executed = Haiti::CommandLineHelpers.execute command, @stdin_data }
7
7
  Then(/^(stderr|stdout) is:$/) { |stream_name, output| @last_executed.send(stream_name).chomp.should == eval_curlies(output) }
data/lib/haiti/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Haiti
2
- VERSION = '0.0.1'
2
+ VERSION = '0.0.2'
3
3
  end
data/test/.gitignore ADDED
@@ -0,0 +1 @@
1
+ proving_grounds/*
data/test/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- haiti (1.0.0)
4
+ haiti (0.0.2)
5
5
  cucumber (~> 1.0)
6
6
  rspec (~> 2.0)
7
7
 
@@ -1,11 +1,11 @@
1
1
  Feature:
2
2
  Scenario:
3
- Given I have the stdin content "content"
3
+ Given the stdin content "content"
4
4
  When I run "cat"
5
5
  Then stdout is "content"
6
6
 
7
7
  Scenario:
8
- Given I have the stdin content:
8
+ Given the stdin content:
9
9
  """
10
10
  some
11
11
  content
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: haiti
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.1
5
+ version: 0.0.2
6
6
  platform: ruby
7
7
  authors:
8
8
  - Josh Cheek
@@ -53,6 +53,7 @@ executables: []
53
53
  extensions: []
54
54
  extra_rdoc_files: []
55
55
  files:
56
+ - .gitignore
56
57
  - Readme.md
57
58
  - haiti.gemspec
58
59
  - lib/haiti.rb
@@ -60,10 +61,11 @@ files:
60
61
  - lib/haiti/config.rb
61
62
  - lib/haiti/step_definitions.rb
62
63
  - lib/haiti/version.rb
64
+ - test/.gitignore
63
65
  - test/Gemfile
64
66
  - test/Gemfile.lock
65
- - test/features/given_i_have_stdin_content.feature
66
67
  - test/features/given_the_file.feature
68
+ - test/features/given_the_stdin_content.feature
67
69
  - test/features/support/env.rb
68
70
  - test/features/then_exit_status_is.feature
69
71
  - test/features/then_stream_is.feature
@@ -96,8 +98,8 @@ summary: Simple Cucumber steps for command line programs
96
98
  test_files:
97
99
  - test/Gemfile
98
100
  - test/Gemfile.lock
99
- - test/features/given_i_have_stdin_content.feature
100
101
  - test/features/given_the_file.feature
102
+ - test/features/given_the_stdin_content.feature
101
103
  - test/features/support/env.rb
102
104
  - test/features/then_exit_status_is.feature
103
105
  - test/features/then_stream_is.feature