Skip to content
This repository has been archived by the owner on Aug 29, 2024. It is now read-only.

Commit

Permalink
Fix failing spec
Browse files Browse the repository at this point in the history
  • Loading branch information
mattgreen committed Jun 11, 2013
1 parent 11ea223 commit 963a6d7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion elevate.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ Gem::Specification.new do |gem|
gem.add_development_dependency 'rake', '>= 0.9.0'
gem.add_development_dependency 'guard-motion', '~> 0.1.1'
gem.add_development_dependency 'rb-fsevent', '~> 0.9.1'
gem.add_development_dependency 'webstub', '~> 0.3.3'
gem.add_development_dependency 'webstub', '~> 0.3.8'
end
3 changes: 3 additions & 0 deletions spec/api_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,9 @@ class Context
end

it "invokes on_timeout when a timeout occurs" do
@result = ""
@timed_out = false

async do
timeout 0.5

Expand Down
2 changes: 1 addition & 1 deletion spec/http/http_request_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
before do
stub_request(:get, @url).with(headers: { "API-Token" => "abc123" }).to_return(body: @body)

@request = Elevate::HTTP::HTTPRequest.new(:get, @url, headers: {})
@request = Elevate::HTTP::HTTPRequest.new(:get, @url, headers: { "API-Token" => "abc123" })
@response = @request.response
end

Expand Down

0 comments on commit 963a6d7

Please sign in to comment.