@@ -27,7 +27,7 @@ def test_replicate_with_no_options
2727 assert_equal "--config" , argv [ 0 ]
2828 assert_match Regexp . new ( "dummy/config/litestream.yml" ) , argv [ 1 ]
2929 end
30- Litestream ::Commands . stub :run_async , stub do
30+ Litestream ::Commands . stub :run_replicate , stub do
3131 Litestream ::Commands . replicate
3232 end
3333 end
@@ -42,7 +42,7 @@ def test_replicate_with_boolean_option
4242 assert_match Regexp . new ( "dummy/config/litestream.yml" ) , argv [ 1 ]
4343 assert_equal "--no-expand-env" , argv [ 2 ]
4444 end
45- Litestream ::Commands . stub :run_async , stub do
45+ Litestream ::Commands . stub :run_replicate , stub do
4646 Litestream ::Commands . replicate ( "--no-expand-env" => nil )
4747 end
4848 end
@@ -58,7 +58,7 @@ def test_replicate_with_string_option
5858 assert_equal "--exec" , argv [ 2 ]
5959 assert_equal "command" , argv [ 3 ]
6060 end
61- Litestream ::Commands . stub :run_async , stub do
61+ Litestream ::Commands . stub :run_replicate , stub do
6262 Litestream ::Commands . replicate ( "--exec" => "command" )
6363 end
6464 end
@@ -74,7 +74,7 @@ def test_replicate_with_symbol_option
7474 assert_equal "--exec" , argv [ 2 ]
7575 assert_equal "command" , argv [ 3 ]
7676 end
77- Litestream ::Commands . stub :run_async , stub do
77+ Litestream ::Commands . stub :run_replicate , stub do
7878 Litestream ::Commands . replicate ( "--exec" : "command" )
7979 end
8080 end
@@ -88,15 +88,15 @@ def test_replicate_with_config_option
8888 assert_equal "--config" , argv [ 0 ]
8989 assert_equal "CONFIG" , argv [ 1 ]
9090 end
91- Litestream ::Commands . stub :run_async , stub do
91+ Litestream ::Commands . stub :run_replicate , stub do
9292 Litestream ::Commands . replicate ( "--config" => "CONFIG" )
9393 end
9494 end
9595
9696 def test_replicate_sets_replica_bucket_env_var_from_config_when_env_var_not_set
9797 Litestream . replica_bucket = "mybkt"
9898
99- Litestream ::Commands . stub :run_async , nil do
99+ Litestream ::Commands . stub :run_replicate , nil do
100100 Litestream ::Commands . replicate
101101 end
102102
@@ -108,7 +108,7 @@ def test_replicate_sets_replica_bucket_env_var_from_config_when_env_var_not_set
108108 def test_replicate_sets_replica_key_id_env_var_from_config_when_env_var_not_set
109109 Litestream . replica_key_id = "mykey"
110110
111- Litestream ::Commands . stub :run_async , nil do
111+ Litestream ::Commands . stub :run_replicate , nil do
112112 Litestream ::Commands . replicate
113113 end
114114
@@ -120,7 +120,7 @@ def test_replicate_sets_replica_key_id_env_var_from_config_when_env_var_not_set
120120 def test_replicate_sets_replica_access_key_env_var_from_config_when_env_var_not_set
121121 Litestream . replica_access_key = "access"
122122
123- Litestream ::Commands . stub :run_async , nil do
123+ Litestream ::Commands . stub :run_replicate , nil do
124124 Litestream ::Commands . replicate
125125 end
126126
@@ -134,7 +134,7 @@ def test_replicate_sets_all_env_vars_from_config_when_env_vars_not_set
134134 Litestream . replica_key_id = "mykey"
135135 Litestream . replica_access_key = "access"
136136
137- Litestream ::Commands . stub :run_async , nil do
137+ Litestream ::Commands . stub :run_replicate , nil do
138138 Litestream ::Commands . replicate
139139 end
140140
@@ -152,7 +152,7 @@ def test_replicate_does_not_set_env_var_from_config_when_env_vars_already_set
152152 Litestream . replica_key_id = "mykey"
153153 Litestream . replica_access_key = "access"
154154
155- Litestream ::Commands . stub :run_async , nil do
155+ Litestream ::Commands . stub :run_replicate , nil do
156156 Litestream ::Commands . replicate
157157 end
158158
0 commit comments