File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -2385,13 +2385,13 @@ class Twitter::APITest < MiniTest::Test
2385
2385
def test_get_api_statuses_public_timeline_returns_an_empty_array_of_statuses
2386
2386
get " /api/statuses/public_timeline"
2387
2387
assert last_response.ok?
2388
- assert_equal JSON .parse(last_response.body), []
2388
+ assert_equal [], JSON .parse(last_response.body)
2389
2389
end
2390
2390
2391
2391
def test_get_api_statuses_id_returns_a_status_by_id
2392
2392
status = Status .create!
2393
2393
get " /api/statuses/#{ status.id } "
2394
- assert_equal last_response.body, status.to_json
2394
+ assert_equal status.to_json, last_response.body
2395
2395
end
2396
2396
end
2397
2397
```
@@ -2441,13 +2441,13 @@ class Twitter::APITest < ActiveSupport::TestCase
2441
2441
test " GET /api/statuses/public_timeline returns an empty array of statuses" do
2442
2442
get " /api/statuses/public_timeline"
2443
2443
assert last_response.ok?
2444
- assert_equal JSON .parse(last_response.body), []
2444
+ assert_equal [], JSON .parse(last_response.body)
2445
2445
end
2446
2446
2447
2447
test " GET /api/statuses/:id returns a status by id" do
2448
2448
status = Status .create!
2449
2449
get " /api/statuses/#{ status.id } "
2450
- assert_equal last_response.body, status.to_json
2450
+ assert_equal status.to_json, last_response.body
2451
2451
end
2452
2452
end
2453
2453
```
You can’t perform that action at this time.
0 commit comments