moved store spec into a separate file, update order id to 5 (as the

order with ID 2 is no longer found)
This commit is contained in:
William Cheng 2015-04-06 19:05:19 +08:00
parent 9c5153e8c8
commit 2967cc3801
2 changed files with 19 additions and 3 deletions

View File

@ -65,7 +65,7 @@ describe "Store" do
end
it "should fetch an order" do
item = StoreApi.getOrderById(2)
item.id.should == 2
item = StoreApi.getOrderById(5)
item.id.should == 5
end
end
end

View File

@ -0,0 +1,16 @@
require 'spec_helper'
describe "Store" do
before do
Swagger.configure do |config|
config.api_key = 'special-key'
config.host = 'petstore.swagger.io'
config.base_path = '/v2'
end
end
it "should fetch an order" do
item = StoreApi.getOrderById(5)
item.id.should == 5
end
end