@@ -39,12 +39,7 @@ bob_weather_agent: |
||
| 39 | 39 |
name: "SF Weather" |
| 40 | 40 |
guid: <%= SecureRandom.hex %> |
| 41 | 41 |
keep_events_for: 45 |
| 42 |
- options: <%= {
|
|
| 43 |
- :location => 94102, |
|
| 44 |
- :lat => 37.779329, |
|
| 45 |
- :lng => -122.41915, |
|
| 46 |
- :api_key => 'test' |
|
| 47 |
- }.to_json.inspect %> |
|
| 42 |
+ options: <%= { :location => 94102, :lat => 37.779329, :lng => -122.41915, :api_key => 'test' }.to_json.inspect %>
|
|
| 48 | 43 |
|
| 49 | 44 |
jane_weather_agent: |
| 50 | 45 |
type: Agents::WeatherAgent |
@@ -53,12 +48,7 @@ jane_weather_agent: |
||
| 53 | 48 |
name: "SF Weather" |
| 54 | 49 |
guid: <%= SecureRandom.hex %> |
| 55 | 50 |
keep_events_for: 30 |
| 56 |
- options: <%= {
|
|
| 57 |
- :location => 94103, |
|
| 58 |
- :lat => 37.779329, |
|
| 59 |
- :lng => -122.41915, |
|
| 60 |
- :api_key => 'test' |
|
| 61 |
- }.to_json.inspect %> |
|
| 51 |
+ options: <%= { :location => 94103, :lat => 37.779329, :lng => -122.41915, :api_key => 'test' }.to_json.inspect %>
|
|
| 62 | 52 |
|
| 63 | 53 |
jane_rain_notifier_agent: |
| 64 | 54 |
type: Agents::TriggerAgent |
@@ -99,7 +99,7 @@ describe Event do |
||
| 99 | 99 |
it "updates last_event_at on agent" do |
| 100 | 100 |
lambda {
|
| 101 | 101 |
agents(:jane_weather_agent).events.create!(:user => users(:jane)) |
| 102 |
- }.should change { agents(:jane_weather_agent).last_event_at }
|
|
| 102 |
+ }.should change { agents(:jane_weather_agent).reload.last_event_at }
|
|
| 103 | 103 |
end |
| 104 | 104 |
end |
| 105 | 105 |
|