diff --git a/samples/client/petstore/ruby/spec/pet_spec.rb b/samples/client/petstore/ruby/spec/pet_spec.rb index 175cb01681..2a715f8b8e 100644 --- a/samples/client/petstore/ruby/spec/pet_spec.rb +++ b/samples/client/petstore/ruby/spec/pet_spec.rb @@ -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 \ No newline at end of file +end diff --git a/samples/client/petstore/ruby/spec/store_spec.rb b/samples/client/petstore/ruby/spec/store_spec.rb new file mode 100644 index 0000000000..0d3233ee55 --- /dev/null +++ b/samples/client/petstore/ruby/spec/store_spec.rb @@ -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