Skip to content

Commit 744952a

Browse files
committed
formatting
1 parent 66591f5 commit 744952a

File tree

3 files changed

+29
-29
lines changed

3 files changed

+29
-29
lines changed

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

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22

33
describe "Pet" do
44
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
5+
Swagger.configure do |config|
6+
config.api_key = 'special-key'
7+
config.host = 'petstore.swagger.io'
8+
config.base_path = '/v2'
9+
end
1010
end
1111

1212
describe "pet methods" do
@@ -26,22 +26,22 @@
2626
pets.length.should == 0
2727
end
2828

29-
it "should find a pet by status" do
30-
pets = PetApi.findPetsByStatus("available,sold")
31-
pets.map {|pet|
32-
if(pet.status != 'available' && pet.status != 'sold')
33-
raise "pet status wasn't right"
34-
end
35-
}
36-
end
37-
38-
it "should update a pet" do
39-
pet = Pet.new({'id' => 99, 'name' => 'programmer', 'status' => 'coding'})
40-
PetApi.addPet(pet)
41-
42-
fetched = PetApi.getPetById(99)
43-
fetched.id.should == 99
44-
end
29+
it "should find a pet by status" do
30+
pets = PetApi.findPetsByStatus("available,sold")
31+
pets.map {|pet|
32+
if(pet.status != 'available' && pet.status != 'sold')
33+
raise "pet status wasn't right"
34+
end
35+
}
36+
end
37+
38+
it "should update a pet" do
39+
pet = Pet.new({'id' => 99, 'name' => 'programmer', 'status' => 'coding'})
40+
PetApi.addPet(pet)
41+
42+
fetched = PetApi.getPetById(99)
43+
fetched.id.should == 99
44+
end
4545

4646
it "should create a pet" do
4747
pet = Pet.new('id' => 100, 'name' => "Gorilla")
@@ -56,15 +56,15 @@
5656

5757
describe "Store" do
5858
before do
59-
Swagger.configure do |config|
60-
config.api_key = 'special-key'
61-
config.host = 'petstore.swagger.io'
62-
config.base_path = '/v2'
63-
end
59+
Swagger.configure do |config|
60+
config.api_key = 'special-key'
61+
config.host = 'petstore.swagger.io'
62+
config.base_path = '/v2'
63+
end
6464
end
6565

6666
it "should fetch an order" do
6767
item = StoreApi.getOrderById(2)
6868
item.id.should == 2
6969
end
70-
end
70+
end

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,4 +200,4 @@
200200

201201
end
202202

203-
end
203+
end

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,4 +57,4 @@
5757

5858
end
5959

60-
end
60+
end

0 commit comments

Comments
 (0)