@@ -55,7 +55,7 @@ class UpdateCommandTest < Minitest::Test
5555 end
5656
5757 def test_updates_specified_dependencies
58- metadata = { dependencies: {web: " *" , orm: " *" , optional: " *" }, }
58+ metadata = {dependencies: {web: " *" , orm: " *" , optional: " *" }}
5959 lock = {web: " 1.0.0" , orm: " 0.4.0" , optional: " 0.2.0" }
6060
6161 with_shard(metadata, lock) do
@@ -78,7 +78,7 @@ class UpdateCommandTest < Minitest::Test
7878 end
7979
8080 def test_wont_install_prerelease_version
81- metadata = { dependencies: {unstable: " *" } }
81+ metadata = {dependencies: {unstable: " *" }}
8282 lock = {unstable: " 0.1.0" }
8383
8484 with_shard(metadata, lock) do
@@ -89,7 +89,7 @@ class UpdateCommandTest < Minitest::Test
8989 end
9090
9191 def test_installs_specified_prerelease_version
92- metadata = { dependencies: {unstable: " ~> 0.3.0.alpha" } }
92+ metadata = {dependencies: {unstable: " ~> 0.3.0.alpha" }}
9393 lock = {unstable: " 0.3.0.alpha" }
9494
9595 with_shard(metadata, lock) do
@@ -100,7 +100,7 @@ class UpdateCommandTest < Minitest::Test
100100 end
101101
102102 def test_updates_locked_specified_prerelease
103- metadata = { dependencies: {unstable: " ~> 0.3.0.alpha" } }
103+ metadata = {dependencies: {unstable: " ~> 0.3.0.alpha" }}
104104 lock = {unstable: " 0.3.0.alpha" }
105105
106106 with_shard(metadata, lock) do
@@ -111,7 +111,7 @@ class UpdateCommandTest < Minitest::Test
111111 end
112112
113113 def test_updates_from_prerelease_to_release_with_approximate_operator
114- metadata = { dependencies: {preview: " ~> 0.3.0.a" } }
114+ metadata = {dependencies: {preview: " ~> 0.3.0.a" }}
115115 lock = {preview: " 0.3.0.alpha" }
116116
117117 with_shard(metadata, lock) do
@@ -123,7 +123,7 @@ class UpdateCommandTest < Minitest::Test
123123
124124 # TODO: detect version, and prefer release (0.3.0) over further prereleases (?)
125125 def test_updates_to_latest_prerelease_with_gte_operator
126- metadata = { dependencies: {preview: " >= 0.3.0.a" } }
126+ metadata = {dependencies: {preview: " >= 0.3.0.a" }}
127127 lock = {preview: " 0.3.0.a" }
128128
129129 with_shard(metadata, lock) do
@@ -208,7 +208,7 @@ class UpdateCommandTest < Minitest::Test
208208 end
209209
210210 def test_runs_postinstall_with_transitive_dependencies
211- with_shard({ dependencies: {transitive: " *" } }, {transitive: " 0.1.0" }) do
211+ with_shard({dependencies: {transitive: " *" }}, {transitive: " 0.1.0" }) do
212212 run " shards update"
213213 binary = File .join(application_path, " lib" , " transitive" , " version" )
214214 assert File .exists?(binary)
@@ -236,7 +236,7 @@ class UpdateCommandTest < Minitest::Test
236236
237237 def test_doesnt_update_local_cache
238238 metadata = {
239- dependencies: { local_cache: " *" },
239+ dependencies: {local_cache: " *" },
240240 }
241241
242242 with_shard(metadata) do
0 commit comments