mirror of
https://github.com/valitydev/openapi-generator.git
synced 2024-11-08 11:23:58 +00:00
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:
parent
9c5153e8c8
commit
2967cc3801
@ -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
|
||||
|
16
samples/client/petstore/ruby/spec/store_spec.rb
Normal file
16
samples/client/petstore/ruby/spec/store_spec.rb
Normal 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
|
Loading…
Reference in New Issue
Block a user