okitan / capybara-json

60 stars 23 forks source link

Dsl spec #10

Closed sonots closed 11 years ago

sonots commented 11 years ago

Created test codes for DSL to fix #9.

Test Codes.

  1. Created rack_test_json/dsl_spec.rb and httpclient_json/dsl_spec.rb
  2. Fixed driver_examples.rb not to use 'capybara/spec/driver' because the file does not exist on capybara 2.0.x. Now test passes in both capybara 1.x and capybara 2.x

Main codes

  1. Fixed a bug that DSL body does not work on capybara 2
  2. Fixed a bug that DSL status_code does not exist on capybara 1
okitan commented 11 years ago

@sonots GJ! I really appreciate your great contribution!