Permalink
Browse files

whitespace

  • Loading branch information...
1 parent 1efee8d commit a0afcb3f1d638d708f7494bb2d1a2356a7ffb264 @markburns markburns committed Dec 13, 2012
Showing with 8 additions and 8 deletions.
  1. +8 −8 spec/access_token_request_spec.rb
@@ -34,29 +34,29 @@
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
context 'fail more than two times' do
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

0 comments on commit a0afcb3

Please sign in to comment.