Skip to content

Commit 328c7b6

Browse files
committed
style: trim trailing spaces
1 parent 4649d94 commit 328c7b6

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

lib/rspec_api_documentation/oauth2_mac_client.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,12 +87,12 @@ def access_token
8787
@access_token ||= begin
8888
app = ProxyApp.new(self, context.app)
8989
stub_request(:any, %r{http://example\.com}).to_rack(app)
90-
90+
9191
# Create a Bearer access token as MAC is no longer supported
9292
access_token = Rack::OAuth2::AccessToken::Bearer.new(
9393
:access_token => options[:identifier] || "1"
9494
)
95-
95+
9696
access_token
9797
end
9898
end

lib/rspec_api_documentation/open_api/node.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ def as_json
103103
end
104104

105105
def settings; @settings ||= {} end
106-
106+
107107
private
108108

109109
def instance_settings; @instance_settings ||= [] end

lib/rspec_api_documentation/writers/formatter.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ def self.to_json(object)
88

99
end
1010
end
11-
end
11+
end

spec/api_formatter_spec.rb

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

33
describe RspecApiDocumentation::ApiFormatter do
44
let(:metadata) { {} }
5-
let(:group) {
5+
let(:group) {
66
# Create an anonymous class that inherits from ExampleGroup but doesn't auto-register
77
Class.new(RSpec::Core::ExampleGroup) do
88
def self.description
99
"Orders"
1010
end
11-
11+
1212
def self.metadata
1313
{}
1414
end

spec/support/stub_app.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
class StubApp
22
def call(env)
33
req = Rack::Request.new(env)
4-
4+
55
case "#{req.request_method} #{req.path_info}"
66
when "GET /"
77
[200, {'Content-Type' => 'application/json'}, [{ :hello => "world" }.to_json]]
88
when "POST /greet"
99
body = req.body.read
1010
req.body.rewind if req.body.respond_to?(:rewind)
11-
11+
1212
begin
1313
data = JSON.parse(body) if body && !body.empty?
1414
rescue JSON::ParserError
1515
data = nil
1616
end
17-
17+
1818
target = data.is_a?(Hash) ? data["target"] : "nurse"
1919
[200, {'Content-Type' => 'application/json', 'Content-Length' => '17'}, [{ :hello => target }.to_json]]
2020
when "GET /xml"

0 commit comments

Comments
 (0)