Sha256: f07f549640f23b4ca68305742a31f264b2e9d091cb8c8088eb2698aa6c79e666
Contents?: true
Size: 691 Bytes
Versions: 1
Compression:
Stored size: 691 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '/spec_helper') describe TokyoApi::Expire do subject { TokyoApi.new(host: 'test.com') } describe 'expire organisation' do let(:body) { fixture('expire/success') } let(:request_path) { '/expire/organisation/foo.com' } before(:each) do stub_get(request_path).to_return(:body => body, :status => status, :headers => { content_type: "application/json; charset=utf-8"}) end describe 'success' do let(:status) { 200 } it 'should find an organisation' do subject.expire.organisation('foo.com').should == {'status' => 'success'} end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
tokyo_api-0.2.0 | spec/expire_spec.rb |