spec/support/driver_examples.rb in capybara-json-0.0.2 vs spec/support/driver_examples.rb in capybara-json-0.0.3

- old
+ new

@@ -1,7 +1,10 @@ require 'capybara/spec/driver' +# this code is written in capybara's spec/spec_helper +alias :running :lambda + [ 'driver', 'driver with header support' ].each do |shared| RSpec.world.shared_example_groups.delete(shared) end shared_examples_for 'driver' do @@ -47,10 +50,10 @@ it 'should set content length' do json = { :some => :args } @driver.__send__(method, '/env', json) - @driver.body['content_length'].should == MultiJson.encode(json).length + @driver.body['content_length'].to_i.should == MultiJson.encode(json).length end it 'should post body' do json = { :some => :args }