From d581df31affd5b5aaa4e1ced4c5096e79f538abc Mon Sep 17 00:00:00 2001 From: Hakan Ensari Date: Wed, 21 Nov 2012 14:46:15 +0000 Subject: [PATCH] We should be able to filter by symbols --- spec/app_spec.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/spec/app_spec.rb b/spec/app_spec.rb index e54cf33..5985a01 100644 --- a/spec/app_spec.rb +++ b/spec/app_spec.rb @@ -17,4 +17,10 @@ describe 'the application' do get '/latest?base=USD' json['base'].must_equal 'USD' end + + it 'filters symbols' do + skip 'enterprise feature' + get '/latest?symbols=USD' + json['rates'].keys.must_equal %w(USD) + end end