Skip to content

Commit

Permalink
fix integration test
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesgolick committed Apr 30, 2009
1 parent 61027db commit ad0fdd2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion test/integration/trample_a_single_url_test.rb
Expand Up @@ -3,7 +3,7 @@
class TrampleASingleUrlTest < Test::Unit::TestCase
def test_trampling_a_single_url
mock(RestClient).get("http://google.com").times(2) { "" }
trample "-c test/fixtures/basic_config.rb"
trample "test/fixtures/basic_config.rb"
end
end

5 changes: 2 additions & 3 deletions test/test_helper.rb
Expand Up @@ -11,9 +11,8 @@ class Test::Unit::TestCase
include RR::Adapters::TestUnit unless include?(RR::Adapters::TestUnit)

protected
def trample(options)
dir = File.expand_path(File.dirname(__FILE__))
`#{dir}/../bin/trample #{options}`
def trample(config)
Trample::Cli.new.start(config)
end
end

0 comments on commit ad0fdd2

Please sign in to comment.