Skip to content
This repository has been archived by the owner on Apr 9, 2024. It is now read-only.

Commit

Permalink
Fix up cukes (what's left of them)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattwynne committed Aug 1, 2011
1 parent 311c11d commit b81c563
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 12 deletions.
3 changes: 2 additions & 1 deletion bin/relish
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env ruby
require 'rubygems' rescue LoadError
$:.unshift(File.expand_path(File.dirname(__FILE__) + '/../lib'))

require 'relish/command'
Expand All @@ -7,4 +8,4 @@ args = ARGV.dup
ARGV.clear
command = args.shift.strip rescue 'help'

Relish::Command.run(command, args)
Relish::Command.run(command, args)
6 changes: 3 additions & 3 deletions features/help.feature
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,18 @@ Feature: Help
along with a description of each.

Scenario: View all available commands with the help command
When I successfully run "relish help"
When I successfully run `relish help`
Then the output should contain:
"""
=== Available Commands
"""

Scenario: Specifying no command runs the help command
When I successfully run "relish"
When I successfully run `relish`
Then the output should contain "=== Available Commands"

Scenario: Specifying an unknown command gives an error message
When I run "relish baloney"
When I run `relish baloney`
Then it should fail with:
"""
Unknown command. Run 'relish help' for usage information.
Expand Down
7 changes: 0 additions & 7 deletions features/step_definitions/aruba.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1 @@
require 'aruba/cucumber'

gem_bin_path = File.dirname(__FILE__) + '/../../bin'
ENV['PATH'] = "#{gem_bin_path}:#{ENV['PATH']}"

When /^I run relish ([^\s]*) (.*)$/ do |command, args|
Relish::Command.run(command, args.split(" "))
end
2 changes: 1 addition & 1 deletion relish.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ Gem::Specification.new do |s|
'rake' => '~> 0.8.7',
'rspec' => '~> 2.0.0',
'cucumber' => '~> 0.9.1',
'aruba' => '~> 0.2.2',
'aruba' => '~> 0.4.5',
'fakeweb' => '~> 1.3.0'
}.each do |lib, version|
s.add_development_dependency lib, version
Expand Down

0 comments on commit b81c563

Please sign in to comment.