mirror of
https://github.com/hakanensari/frankfurter.git
synced 2024-11-25 04:22:28 +01:00
We should be able to filter by symbols
This commit is contained in:
parent
40cf0775d2
commit
d581df31af
@ -17,4 +17,10 @@ describe 'the application' do
|
|||||||
get '/latest?base=USD'
|
get '/latest?base=USD'
|
||||||
json['base'].must_equal 'USD'
|
json['base'].must_equal 'USD'
|
||||||
end
|
end
|
||||||
|
|
||||||
|
it 'filters symbols' do
|
||||||
|
skip 'enterprise feature'
|
||||||
|
get '/latest?symbols=USD'
|
||||||
|
json['rates'].keys.must_equal %w(USD)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user