Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

whitespace

  • Loading branch information...
commit a0afcb3f1d638d708f7494bb2d1a2356a7ffb264 1 parent 1efee8d
@markburns markburns authored
Showing with 8 additions and 8 deletions.
  1. +8 −8 spec/access_token_request_spec.rb
View
16 spec/access_token_request_spec.rb
@@ -34,7 +34,7 @@
let(:number_of_failures) { 2 }
specify do
- Shutl::Auth::AccessTokenRequest.new.access_token!.should == 'token'
+ Shutl::Auth::AccessTokenRequest.new.access_token!.should == 'token'
end
end
@@ -42,21 +42,21 @@
let(:number_of_failures) { 3 }
specify do
- Shutl::Auth::AccessTokenRequest.new.access_token!.should be_nil
+ Shutl::Auth::AccessTokenRequest.new.access_token!.should be_nil
end
end
class FailNTimesThenSucceed
def initialize number_of_failures, access_token
- @number_of_failures = number_of_failures
- @access_token = access_token
- @counter = 0
+ @number_of_failures = number_of_failures
+ @access_token = access_token
+ @counter = 0
end
def access_token!
- @counter += 1
- raise Errno::ECONNREFUSED if @counter <= @number_of_failures
- @access_token
+ @counter += 1
+ raise Errno::ECONNREFUSED if @counter <= @number_of_failures
+ @access_token
end
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.