Permalink
Browse files

Merge pull request #10090 from vipulnsward/fix_private_warn

fix private attribute warning
  • Loading branch information...
2 parents 363c08f + 113e396 commit 25fcc1739f966caa8c0c5b93c977f985c11b9de7 @steveklabnik steveklabnik 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
@@ -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))
@@ -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 25fcc17

Please sign in to comment.