Permalink
Browse files

Fix up cukes (what's left of them)

  • Loading branch information...
1 parent 311c11d commit b81c56331e75c5eced7045d40af835d308d4a2ab @mattwynne mattwynne committed Aug 1, 2011
Showing with 6 additions and 12 deletions.
  1. +2 −1 bin/relish
  2. +3 −3 features/help.feature
  3. +0 −7 features/step_definitions/aruba.rb
  4. +1 −1 relish.gemspec
View
@@ -1,4 +1,5 @@
#!/usr/bin/env ruby
+require 'rubygems' rescue LoadError
$:.unshift(File.expand_path(File.dirname(__FILE__) + '/../lib'))
require 'relish/command'
@@ -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)
View
@@ -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.
@@ -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
View
@@ -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

0 comments on commit b81c563

Please sign in to comment.