spec/support/driver_examples.rb in capybara-json-0.2.1 vs spec/support/driver_examples.rb in capybara-json-0.2.2

- old
+ new

@@ -67,9 +67,14 @@ it 'should set content type as json to request' do @driver.__send__(method, '/env', {}) @driver.body['content_type'].should =~ %r"^application/json" end + it "should actualy #{method}" do + @driver.__send__(method, '/env', {}) + @driver.body["request_method"].should == method.upcase + end + it 'should set content length' do json = { :some => :args } @driver.__send__(method, '/env', json) @driver.body['content_length'].to_i.should == MultiJson.dump(json).length