spec/capybara/json_spec.rb in capybara-json-0.1.1 vs spec/capybara/json_spec.rb in capybara-json-0.1.2
- old
+ new
@@ -18,17 +18,17 @@
after(:all) do
Capybara.app = nil
Capybara.current_driver = Capybara.default_driver
end
- %w[ get delete ].each do |method|
+ %w[ get get! delete delete! ].each do |method|
it "register #{method}" do
__send__(method, '/')
body.should == { 'Hello world!' => 'Hello world!' }
end
end
- %w[ post put ].each do |method|
+ %w[ post post! put put! ].each do |method|
it "register #{method}" do
__send__(method, '/', {})
body.should == { 'Hello world!' => 'Hello world!' }
end