Skip to content

Commit 862621c

Browse files
committed
Fix assert_equal arguments order in README
1 parent c9c0fd4 commit 862621c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2385,13 +2385,13 @@ class Twitter::APITest < MiniTest::Test
23852385
def test_get_api_statuses_public_timeline_returns_an_empty_array_of_statuses
23862386
get "/api/statuses/public_timeline"
23872387
assert last_response.ok?
2388-
assert_equal JSON.parse(last_response.body), []
2388+
assert_equal [], JSON.parse(last_response.body)
23892389
end
23902390

23912391
def test_get_api_statuses_id_returns_a_status_by_id
23922392
status = Status.create!
23932393
get "/api/statuses/#{status.id}"
2394-
assert_equal last_response.body, status.to_json
2394+
assert_equal status.to_json, last_response.body
23952395
end
23962396
end
23972397
```
@@ -2441,13 +2441,13 @@ class Twitter::APITest < ActiveSupport::TestCase
24412441
test "GET /api/statuses/public_timeline returns an empty array of statuses" do
24422442
get "/api/statuses/public_timeline"
24432443
assert last_response.ok?
2444-
assert_equal JSON.parse(last_response.body), []
2444+
assert_equal [], JSON.parse(last_response.body)
24452445
end
24462446

24472447
test "GET /api/statuses/:id returns a status by id" do
24482448
status = Status.create!
24492449
get "/api/statuses/#{status.id}"
2450-
assert_equal last_response.body, status.to_json
2450+
assert_equal status.to_json, last_response.body
24512451
end
24522452
end
24532453
```

0 commit comments

Comments
 (0)