summaryrefslogtreecommitdiff
path: root/spec/lib/runner_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/lib/runner_spec.rb')
-rw-r--r--spec/lib/runner_spec.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/spec/lib/runner_spec.rb b/spec/lib/runner_spec.rb
index db13a73..b46aaff 100644
--- a/spec/lib/runner_spec.rb
+++ b/spec/lib/runner_spec.rb
@@ -6,16 +6,18 @@ describe Runner do
it "should run a success build" do
build = setup_build 'ls'
- Runner.new(build).run
+ Runner.new.perform(build.id)
+ build.reload
build.trace.should include 'six.gemspec'
build.should be_success
end
it "should run a failed build" do
build = setup_build 'cat MISSING'
- Runner.new(build).run
+ Runner.new.perform(build.id)
+ build.reload
build.should be_failed
end