Skip to content

Commit 2967cc3

Browse files
committed
moved store spec into a separate file, update order id to 5 (as the
order with ID 2 is no longer found)
1 parent 9c5153e commit 2967cc3

File tree

2 files changed

+19
-3
lines changed

2 files changed

+19
-3
lines changed

samples/client/petstore/ruby/spec/pet_spec.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
end
6666

6767
it "should fetch an order" do
68-
item = StoreApi.getOrderById(2)
69-
item.id.should == 2
68+
item = StoreApi.getOrderById(5)
69+
item.id.should == 5
7070
end
71-
end
71+
end
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
require 'spec_helper'
2+
3+
describe "Store" do
4+
before do
5+
Swagger.configure do |config|
6+
config.api_key = 'special-key'
7+
config.host = 'petstore.swagger.io'
8+
config.base_path = '/v2'
9+
end
10+
end
11+
12+
it "should fetch an order" do
13+
item = StoreApi.getOrderById(5)
14+
item.id.should == 5
15+
end
16+
end

0 commit comments

Comments
 (0)