mirror of
https://github.com/hakanensari/frankfurter.git
synced 2024-11-22 02:52:49 +01:00
We should be able to set base currency
This commit is contained in:
parent
db37382765
commit
68c6fb6c17
21
spec/snapshots_spec.rb
Normal file
21
spec/snapshots_spec.rb
Normal file
@ -0,0 +1,21 @@
|
||||
require_relative 'helper'
|
||||
require 'rack/test'
|
||||
require 'app'
|
||||
|
||||
describe 'the application' do
|
||||
include Rack::Test::Methods
|
||||
|
||||
let(:app) { Sinatra::Application }
|
||||
let(:json) { Yajl::Parser.new.parse last_response.body }
|
||||
|
||||
it 'returns latest snapshot' do
|
||||
get '/latest'
|
||||
assert last_response.ok?
|
||||
end
|
||||
|
||||
it 'sets base currency' do
|
||||
skip 'pending'
|
||||
get '/latest?base=USD'
|
||||
json['base'].must_equal 'USD'
|
||||
end
|
||||
end
|
Loading…
Reference in New Issue
Block a user