spec/lib/gush/workflow_spec.rb in gush-0.1.2 vs spec/lib/gush/workflow_spec.rb in gush-0.2.0
- old
+ new
@@ -71,11 +71,11 @@
result = JSON.parse(klass.create("arg1", "arg2").to_json)
expected = {
"id" => an_instance_of(String),
"name" => klass.to_s,
"klass" => klass.to_s,
- "status" => "pending",
+ "status" => "running",
"total" => 2,
"finished" => 0,
"started_at" => nil,
"finished_at" => nil,
"stopped" => false,
@@ -201,16 +201,9 @@
end
describe "#running?" do
context "when no enqueued or running jobs" do
it "returns false" do
- expect(subject.running?).to be_falsy
- end
- end
-
- context "when some jobs are enqueued" do
- it "returns true" do
- subject.find_job('Prepare').enqueue!
expect(subject.running?).to be_truthy
end
end
context "when some jobs are running" do