Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

add spec about "never" schedule

  • Loading branch information...
commit d52f8e7d4a346886790d0e6b75abd96be11a97b8 1 parent e8260ee
@cantino authored
Showing with 6 additions and 0 deletions.
  1. +6 −0 spec/models/agent_spec.rb
View
6 spec/models/agent_spec.rb
@@ -25,6 +25,12 @@
do_not_allow(Agents::WebsiteAgent).async_check
Agent.run_schedule("blah")
end
+
+ it "will not run the 'never' schedule" do
+ agents(:bob_weather_agent).update_attribute 'schedule', 'never'
+ do_not_allow(Agents::WebsiteAgent).async_check
+ Agent.run_schedule("never")
+ end
end
describe "credential" do
Please sign in to comment.
Something went wrong with that request. Please try again.