Skip to content

Commit 29b203c

Browse files
committed
Add Empty Result Test
1 parent 091a650 commit 29b203c

2 files changed

Lines changed: 70 additions & 0 deletions

File tree

test/fixtures/search_blank.yml

Lines changed: 61 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

test/ticketmaster/clients/discovery_test.rb

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,4 +92,13 @@ def test_get_venue
9292
end
9393
end
9494

95+
def test_search_venues_blank
96+
VCR.use_cassette('search_blank') do
97+
client = Ticketmaster::Client.new(apikey: 'TEST')
98+
results = client.search_venues({params: {keyword: 'INVALIDSEARCHINPUT'}}).results
99+
100+
assert_equal 0, results.length
101+
end
102+
end
103+
95104
end

0 commit comments

Comments
 (0)