Skip to content

Commit

Permalink
Merge branch 'hotfix/some-love' of https://github.com/damien/em-http-…
Browse files Browse the repository at this point in the history
  • Loading branch information
igrigorik committed Dec 18, 2010
2 parents bde3a9b + be30efb commit e8c998c
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 11 deletions.
5 changes: 3 additions & 2 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ require 'rake'
require 'rake/clean'
require 'rake/rdoctask'
require 'rake/gempackagetask'
require 'rspec/core/rake_task'
require 'fileutils'
include FileUtils

Expand Down Expand Up @@ -38,8 +39,8 @@ task :ragel do
end
end

require 'rspec/core/rake_task'
Rspec::Core::RakeTask.new(:spec)
desc "Run all RSpec tests"
RSpec::Core::RakeTask.new(:spec)

def make(makedir)
Dir.chdir(makedir) { sh MAKE }
Expand Down
6 changes: 3 additions & 3 deletions spec/encoding_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require 'spec/helper'
require 'helper'

describe EventMachine::HttpEncoding do
include EventMachine::HttpEncoding
Expand Down Expand Up @@ -34,7 +34,7 @@
it "should be fast on long string escapes" do
s = Time.now
5000.times { |n| form_encode_body({:a => "{a:'b', d:'f', g:['a','b']}"*50}) }
(Time.now - s).should be_close(1, 0.5)
(Time.now - s).should satisfy { |t| t < 1.5 }
end

end
end
2 changes: 1 addition & 1 deletion spec/mock_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require 'spec/helper'
require 'helper'

describe 'em-http mock' do

Expand Down
4 changes: 2 additions & 2 deletions spec/multi_spec.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
require 'spec/helper'
require 'spec/stallion'
require 'helper'
require 'stallion'

describe EventMachine::MultiRequest do

Expand Down
6 changes: 3 additions & 3 deletions spec/request_spec.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require 'spec/helper'
require 'spec/stallion'
require 'spec/stub_server'
require 'helper'
require 'stallion'
require 'stub_server'

describe EventMachine::HttpRequest do

Expand Down

0 comments on commit e8c998c

Please sign in to comment.