Skip to content

Commit

Permalink
adding tests order config
Browse files Browse the repository at this point in the history
  • Loading branch information
joaomdmoura committed Apr 27, 2015
1 parent b706e52 commit 49e41cb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
6 changes: 3 additions & 3 deletions test/action_controller/serialization_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -319,13 +319,13 @@ def test_render_fragment_changed_object_with_relationship
response = JSON.parse(@response.body)

expected_return = {
"id"=>1,
"time"=>DateTime.now.to_s,
"post" => {
"id"=>1,
"title"=>"New Post",
"body"=>"Body"
},
"id"=>1,
"time"=>DateTime.now.to_s
}
}

assert_equal 'application/json', @response.content_type
Expand Down
3 changes: 2 additions & 1 deletion test/test_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
class Foo < Rails::Application
if Rails.version.to_s.start_with? '4'
config.action_controller.perform_caching = true
ActionController::Base.cache_store = :memory_store
config.active_support.test_order = :random
ActionController::Base.cache_store = :memory_store
end
end

Expand Down

0 comments on commit 49e41cb

Please sign in to comment.