summaryrefslogtreecommitdiff
path: root/spec/lib/runner_spec.rb
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-01-14 17:39:21 +0200
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-01-14 17:39:21 +0200
commitcccef5c484d8da6411a73a4c576754ff83abdc1c (patch)
tree30e74e7de69729b0662411748bc18d2667c3fadf /spec/lib/runner_spec.rb
parent8bc8e7bc5e6598262a8aba20f064b83cd7c9f0a2 (diff)
downloadgitlab-ci-cccef5c484d8da6411a73a4c576754ff83abdc1c.tar.gz
whenever for schedules
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