Permalink
Browse files

add spec about "never" schedule

  • Loading branch information...
1 parent e8260ee commit d52f8e7d4a346886790d0e6b75abd96be11a97b8 @cantino cantino committed Feb 9, 2014
Showing with 6 additions and 0 deletions.
  1. +6 −0 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

0 comments on commit d52f8e7

Please sign in to comment.