Skip to content

Commit

Permalink
added a test to confirm bogus criteria are gracefully ignored
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisbaglieri committed Aug 18, 2011
1 parent 6f2de8b commit fa41cc8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/event_tests.rb
Expand Up @@ -41,4 +41,9 @@ def test_recent_events_week_with_min_magnitude_of_three_max_magnitude_four
end
end

def test_recent_events_hour_with_bogus_criteria
events = Quake::Event.last_hour :foo => 1
assert(events.count > 0)
end

end

0 comments on commit fa41cc8

Please sign in to comment.