Skip to content

Commit 7da1a32

Browse files
committed
Remove trailing spaces
1 parent f6225f9 commit 7da1a32

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

lib/active_resource/connection.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ def extract_params_from_response
272272
end
273273

274274
def auth_attributes_for(uri, request_digest, params)
275-
auth_attrs =
275+
auth_attrs =
276276
[
277277
%Q(username="#{@user}"),
278278
%Q(realm="#{params['realm']}"),

lib/active_resource/http_mock.rb

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ def reset!
218218
# Enables all ActiveResource::Connection instances to use real
219219
# Net::HTTP instance instead of a mock.
220220
def enable_net_connection!
221-
@@net_connection_enabled = true
221+
@@net_connection_enabled = true
222222
end
223223

224224
# Sets all ActiveResource::Connection to use HttpMock instances.
@@ -228,10 +228,10 @@ def disable_net_connection!
228228

229229
# Checks if real requests can be used instead of the default mock used in tests.
230230
def net_connection_enabled?
231-
if defined?(@@net_connection_enabled)
232-
@@net_connection_enabled
231+
if defined?(@@net_connection_enabled)
232+
@@net_connection_enabled
233233
else
234-
@@net_connection_enabled = false
234+
@@net_connection_enabled = false
235235
end
236236
end
237237

@@ -363,12 +363,12 @@ def http_stub
363363
end
364364

365365
def unstub_http?
366-
HttpMock.net_connection_enabled? && defined?(@http) && @http.kind_of?(HttpMock)
366+
HttpMock.net_connection_enabled? && defined?(@http) && @http.kind_of?(HttpMock)
367367
end
368368

369369
def stub_http?
370-
HttpMock.net_connection_disabled? && defined?(@http) && @http.kind_of?(Net::HTTP)
371-
end
370+
HttpMock.net_connection_disabled? && defined?(@http) && @http.kind_of?(Net::HTTP)
371+
end
372372

373373
end
374374
end

test/singleton_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ def setup_weather
1010
mock.get '/weather.json?degrees=fahrenheit', {}, weather.merge(:temperature => 100).to_json
1111
mock.post '/weather.json', {}, weather.to_json, 201, 'Location' => '/weather.json'
1212
mock.delete '/weather.json', {}, nil
13-
mock.put '/weather.json', {}, nil, 204
13+
mock.put '/weather.json', {}, nil, 204
1414
end
1515
end
1616

0 commit comments

Comments
 (0)