diff --git a/test/integration/trample_a_single_url_test.rb b/test/integration/trample_a_single_url_test.rb index 8a5477e..7a1b843 100644 --- a/test/integration/trample_a_single_url_test.rb +++ b/test/integration/trample_a_single_url_test.rb @@ -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 diff --git a/test/test_helper.rb b/test/test_helper.rb index a89334f..48ae711 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -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