Skip to content

Commit 61a8eaa

Browse files
committed
Fix tests for rails 4.1
1 parent 02a5be2 commit 61a8eaa

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/acceptance/app_test.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -263,13 +263,13 @@ def exec_name
263263
end
264264

265265
test "runner command sets Rails environment from command-line options" do
266-
assert_success "bin/rails runner -e production 'puts Rails.env'", stdout: "production"
267-
assert_success "bin/rails runner --environment=production 'puts Rails.env'", stdout: "production"
266+
assert_success "bin/rails runner -e test 'puts Rails.env'", stdout: "test"
267+
assert_success "bin/rails runner --environment=test 'puts Rails.env'", stdout: "test"
268268
end
269269

270270
test "forcing rails env via environment variable" do
271-
app.env['RAILS_ENV'] = 'production'
272-
assert_success "bin/rake -p 'Rails.env'", stdout: "production"
271+
app.env['RAILS_ENV'] = 'test'
272+
assert_success "bin/rake -p 'Rails.env'", stdout: "test"
273273
end
274274

275275
test "setting env vars with rake" do

0 commit comments

Comments
 (0)