rails/activeresource — pull request #37 by Fivell (2012-09-01 11:34:57+00:00)
Title: Test failed 

After git clone and running test I have next

```ruby

Admins-MacBook-Pro:activeresource admin$ rake
/Users/admin/.rvm/rubies/ruby-1.9.3-p125/bin/ruby -w -I"lib:test" -I"/Users/admin/.rvm/gems/ruby-1.9.3-p125/gems/rake-0.9.2.2/lib" "/Users/admin/.rvm/gems/ruby-1.9.3-p125/gems/rake-0.9.2.2/lib/rake/rake_test_loader.rb" "test/**/*_test.rb"
Run options: --seed 32545

# Running tests:

...................................................................................................................................FF...............................................................................................................................................................................................................................

Finished tests in 1.985836s, 179.2696 tests/s, 493.9985 assertions/s.

1) Failure:
test_to_json(BaseTest) [/Users/admin/Documents/activeresource/test/cases/base_test.rb:1086]:
Expected /^\{"person":\{/ to match "{\"id\":6,\"name\":\"Joe\",\"likes_hats\":true}".

2) Failure:
test_to_json_with_element_name(BaseTest) [/Users/admin/Documents/activeresource/test/cases/base_test.rb:1114]:
Expected /^\{"ruby_creator":\{/ to match "{\"id\":6,\"name\":\"Joe\",\"likes_hats\":true}".

356 tests, 981 assertions, 2 failures, 0 errors, 0 skips

```ruby

I can't find where include_root_in_json = true is set
So I added this line setup method to make tests pass.