@@ -202,37 +202,37 @@ def test_generate_should_run_script_generate_with_argument_and_options
202202 end
203203
204204 def test_rails_should_run_rake_command_with_default_env
205- assert_called_with ( generator , :run , [ "rails log:clear RAILS_ENV=development" , verbose : false ] ) do
205+ assert_called_with ( generator , :run , [ "rake log:clear RAILS_ENV=development" , verbose : false ] ) do
206206 with_rails_env nil do
207207 action :rake , 'log:clear'
208208 end
209209 end
210210 end
211211
212212 def test_rails_with_env_option_should_run_rake_command_in_env
213- assert_called_with ( generator , :run , [ 'rails log:clear RAILS_ENV=production' , verbose : false ] ) do
213+ assert_called_with ( generator , :run , [ 'rake log:clear RAILS_ENV=production' , verbose : false ] ) do
214214 action :rake , 'log:clear' , env : 'production'
215215 end
216216 end
217217
218218 test "rails command with RAILS_ENV variable should run rake command in env" do
219- assert_called_with ( generator , :run , [ 'rails log:clear RAILS_ENV=production' , verbose : false ] ) do
219+ assert_called_with ( generator , :run , [ 'rake log:clear RAILS_ENV=production' , verbose : false ] ) do
220220 with_rails_env "production" do
221221 action :rake , 'log:clear'
222222 end
223223 end
224224 end
225225
226226 test "env option should win over RAILS_ENV variable when running rake" do
227- assert_called_with ( generator , :run , [ 'rails log:clear RAILS_ENV=production' , verbose : false ] ) do
227+ assert_called_with ( generator , :run , [ 'rake log:clear RAILS_ENV=production' , verbose : false ] ) do
228228 with_rails_env "staging" do
229229 action :rake , 'log:clear' , env : 'production'
230230 end
231231 end
232232 end
233233
234234 test "rails command with sudo option should run rake command with sudo" do
235- assert_called_with ( generator , :run , [ "sudo rails log:clear RAILS_ENV=development" , verbose : false ] ) do
235+ assert_called_with ( generator , :run , [ "sudo rake log:clear RAILS_ENV=development" , verbose : false ] ) do
236236 with_rails_env nil do
237237 action :rake , 'log:clear' , sudo : true
238238 end
0 commit comments