Skip to content

Commit

Permalink
Test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
fbacall committed Jan 31, 2024
1 parent f1221a5 commit 11ddd08
Showing 1 changed file with 17 additions and 12 deletions.
29 changes: 17 additions & 12 deletions test/functional/git_repositories_controller_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,24 +39,29 @@ class GitRepositoriesControllerTest < ActionController::TestCase
[{ "name" => "main",
"ref" => "refs/remotes/origin/main",
"sha" => "94ae9926a824ebe809a9e9103cbdb1d5c5f98608",
"time" => 1647252603,
"default" => true },
{ "name" => "add-license-1",
"ref" => "refs/remotes/origin/add-license-1",
"sha" => "58fe5180070ab7b5387965c5f35b8b5657096c98" },
{ "name" => "cff",
"ref" => "refs/remotes/origin/cff",
"sha" => "bd67097c20eade0e20d796246fbf4dbaedaf4534"
},
"sha" => "bd67097c20eade0e20d796246fbf4dbaedaf4534",
"time" => 1662630685 },
{ "name" => "symlink",
"ref" => "refs/remotes/origin/symlink",
"sha" => "728337a507db00b8b8ba9979330a4f53d6d43b18"}],
"sha" => "728337a507db00b8b8ba9979330a4f53d6d43b18",
"time" => 1655131522 },
{ "name" => "add-license-1",
"ref" => "refs/remotes/origin/add-license-1",
"sha" => "58fe5180070ab7b5387965c5f35b8b5657096c98",
"time" => 1617199811 }],
"tags" =>
[{ "name" => "v0.01",
"ref" => "refs/tags/v0.01",
"sha" => "3f2c23e92da3ccbc89d7893b4af6039e66bdaaaf" },
{ "name" => "v0.02",
[{ "name" => "v0.02",
"ref" => "refs/tags/v0.02",
"sha" => "94ae9926a824ebe809a9e9103cbdb1d5c5f98608" }] }
"sha" => "94ae9926a824ebe809a9e9103cbdb1d5c5f98608",
"time" => 1647252603},
{ "name" => "v0.01",
"ref" => "refs/tags/v0.01",
"sha" => "3f2c23e92da3ccbc89d7893b4af6039e66bdaaaf",
"time" => 1617199742 }] }

assert_equal expected, res
end
Expand All @@ -67,7 +72,7 @@ class GitRepositoriesControllerTest < ActionController::TestCase
get :refs, params: { id: repo.id, format: :json }

res = JSON.parse(response.body)
expected = { "branches" => [], "tags" => [] }
expected = { "branches" => [], "tags" => [] }
assert_equal expected, res
end

Expand Down

0 comments on commit 11ddd08

Please sign in to comment.