File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -319,13 +319,13 @@ def test_render_fragment_changed_object_with_relationship
319
319
response = JSON . parse ( @response . body )
320
320
321
321
expected_return = {
322
+ "id" => 1 ,
323
+ "time" => DateTime . now . to_s ,
322
324
"post" => {
323
325
"id" => 1 ,
324
326
"title" => "New Post" ,
325
327
"body" => "Body"
326
- } ,
327
- "id" => 1 ,
328
- "time" => DateTime . now . to_s
328
+ }
329
329
}
330
330
331
331
assert_equal 'application/json' , @response . content_type
Original file line number Diff line number Diff line change 12
12
class Foo < Rails ::Application
13
13
if Rails . version . to_s . start_with? '4'
14
14
config . action_controller . perform_caching = true
15
- ActionController ::Base . cache_store = :memory_store
15
+ config . active_support . test_order = :random
16
+ ActionController ::Base . cache_store = :memory_store
16
17
end
17
18
end
18
19
You can’t perform that action at this time.
0 commit comments