test/songkickr/test_remote.rb in songkickr-0.5.2 vs test/songkickr/test_remote.rb in songkickr-0.5.3
- old
+ new
@@ -150,13 +150,20 @@
result = @remote.artist_search(:artist_name => 'Counterparts')
assert_equal "Counterparts", result.results.first.display_name
end
end
- should "return the event when searched" do
- VCR.use_cassette('event_search') do
+ should "return the event when searched with an artist string" do
+ VCR.use_cassette('event_search_string') do
+ result = @remote.events('Counterparts')
+ assert_equal "Stray from the Path, Counterparts, My Ticket Home, and Expire at The Loft (October 9, 2014)", result.results.first.display_name
+ end
+ end
+
+ should "return the event when searched as a hash" do
+ VCR.use_cassette('event_search_hash') do
result = @remote.events(:artist_name => 'Counterparts')
- assert_equal "Sound and Fury 2013", result.results.first.display_name
+ assert_equal "Amnesia Rockfest 2014", result.results.first.display_name
end
end
should "return the location when searched" do
VCR.use_cassette('location_search') do