aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test/commands/console_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'railties/test/commands/console_test.rb')
-rw-r--r--railties/test/commands/console_test.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/railties/test/commands/console_test.rb b/railties/test/commands/console_test.rb
index 69e89d87ae..e047d4882d 100644
--- a/railties/test/commands/console_test.rb
+++ b/railties/test/commands/console_test.rb
@@ -58,8 +58,8 @@ class Rails::ConsoleTest < ActiveSupport::TestCase
end
def test_console_defaults_to_IRB
- config = mock("config", :console => nil)
- app = mock("app", :config => config)
+ config = mock("config", console: nil)
+ app = mock("app", config: config)
app.expects(:load_console).returns(nil)
assert_equal IRB, Rails::Console.new(app).console
@@ -115,8 +115,8 @@ class Rails::ConsoleTest < ActiveSupport::TestCase
def app
@app ||= begin
- config = mock("config", :console => FakeConsole)
- app = mock("app", :config => config)
+ config = mock("config", console: FakeConsole)
+ app = mock("app", config: config)
app.stubs(:sandbox=).returns(nil)
app.expects(:load_console)
app