Fixed seeds and fictures for rain notifier

The seed rain notifier wasn't using liquid templates so the
conditions and location showed up as literal strings.

Andrew Curioso 10 ans auparavant
Parent
Commettre
24e03a5b45
2 fichiers modifiés avec 3 ajouts et 3 suppressions
  1. 1 1
      db/seeds.rb
  2. 2 2
      spec/fixtures/agents.yml

+ 1 - 1
db/seeds.rb

@@ -64,7 +64,7 @@ unless user.agents.where(:name => "Rain Notifier").exists?
64 64
                                           'value' => "rain|storm",
65 65
                                           'path' => "conditions"
66 66
                                       }],
67
-                           'message' => "Just so you know, it looks like '<conditions>' tomorrow in <location>"
67
+                           'message' => "Just so you know, it looks like '{{conditions}}' tomorrow in {{location}}"
68 68
                        }).save!
69 69
 end
70 70
 

+ 2 - 2
spec/fixtures/agents.yml

@@ -72,7 +72,7 @@ jane_rain_notifier_agent:
72 72
                    :value => "rain",
73 73
                    :path => "conditions"
74 74
                  }],
75
-                 :message => "Just so you know, it looks like '<conditions>' tomorrow in <location>"
75
+                 :message => "Just so you know, it looks like '{{conditions}}' tomorrow in {{location}}"
76 76
                }.to_json.inspect %>
77 77
 
78 78
 bob_rain_notifier_agent:
@@ -87,7 +87,7 @@ bob_rain_notifier_agent:
87 87
                    :value => "rain",
88 88
                    :path => "conditions"
89 89
                   }],
90
-                 :message => "Just so you know, it looks like '<conditions>' tomorrow in <location>"
90
+                 :message => "Just so you know, it looks like '{{conditions}}' tomorrow in {{location}}"
91 91
                }.to_json.inspect %>
92 92
 
93 93
 bob_twitter_user_agent: