Skip to content
Browse files

fix private attribute warning

  • Loading branch information...
1 parent 2914638 commit 113e39625ba533168d20a0e7c0019ca2e2ac7806 @vipulnsward vipulnsward committed Apr 4, 2013
Showing with 6 additions and 3 deletions.
  1. +3 −2 railties/test/commands/console_test.rb
  2. +3 −1 railties/test/commands/dbconsole_test.rb
View
5 railties/test/commands/console_test.rb
@@ -114,9 +114,10 @@ def test_rails_env_is_dev_when_argument_is_dev_and_dev_env_is_present
assert_match('dev', options[:environment])
end
- private
-
attr_reader :output
+ private :output
+
+ private
def start(argv = [])
rails_console = Rails::Console.new(app, parse_arguments(argv))
View
4 railties/test/commands/dbconsole_test.rb
@@ -172,8 +172,10 @@ def test_print_help_long
assert_match(/Usage:.*dbconsole/, stdout)
end
- private
attr_reader :aborted, :output
+ private :aborted, :output
+
+ private
def dbconsole
@dbconsole ||= Rails::DBConsole.new(nil)

0 comments on commit 113e396

Please sign in to comment.
Something went wrong with that request. Please try again.