fix db:seed

This commit is contained in:
Andrew Cantino 2013-03-24 20:19:01 -07:00
parent 9f0e949fd8
commit 3eff5bfa0c
2 changed files with 2 additions and 2 deletions

View file

@ -61,7 +61,7 @@ module Agents
def validate_options
errors.add(:base, "zipcode is required") unless options[:zipcode].present?
errors.add(:base, "api_key is required") unless key_setup?
errors.add(:base, "api_key is required") unless options[:api_key].present?
end
def check

View file

@ -13,7 +13,7 @@ unless user.agents.where(:name => "SF Weather Agent").exists?
Agent.build_for_type("Agents::WeatherAgent", user,
:name => "SF Weather Agent",
:schedule => "10pm",
:options => {:zipcode => "94103"}).save!
:options => { :zipcode => "94103", :api_key => "your-key" }).save!
end
unless user.agents.where(:name => "XKCD Source").exists?