aboutsummaryrefslogtreecommitdiffstats
path: root/railties
diff options
context:
space:
mode:
authorSteve Klabnik <steve@steveklabnik.com>2013-04-04 12:14:55 -0700
committerSteve Klabnik <steve@steveklabnik.com>2013-04-04 12:14:55 -0700
commit25fcc1739f966caa8c0c5b93c977f985c11b9de7 (patch)
treeefd24367f7c9abf3b94e5d48185de4d2853d8991 /railties
parent363c08fa6033a53c1fed18288921c98e70484064 (diff)
parent113e39625ba533168d20a0e7c0019ca2e2ac7806 (diff)
downloadrails-25fcc1739f966caa8c0c5b93c977f985c11b9de7.tar.gz
rails-25fcc1739f966caa8c0c5b93c977f985c11b9de7.tar.bz2
rails-25fcc1739f966caa8c0c5b93c977f985c11b9de7.zip
Merge pull request #10090 from vipulnsward/fix_private_warn
fix private attribute warning
Diffstat (limited to 'railties')
-rw-r--r--railties/test/commands/console_test.rb5
-rw-r--r--railties/test/commands/dbconsole_test.rb4
2 files changed, 6 insertions, 3 deletions
diff --git a/railties/test/commands/console_test.rb b/railties/test/commands/console_test.rb
index 3c784b43be..a34beaedb3 100644
--- a/railties/test/commands/console_test.rb
+++ b/railties/test/commands/console_test.rb
@@ -114,9 +114,10 @@ class Rails::ConsoleTest < ActiveSupport::TestCase
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))
diff --git a/railties/test/commands/dbconsole_test.rb b/railties/test/commands/dbconsole_test.rb
index 38fe8ca544..edb92b3aa2 100644
--- a/railties/test/commands/dbconsole_test.rb
+++ b/railties/test/commands/dbconsole_test.rb
@@ -172,8 +172,10 @@ class Rails::DBConsoleTest < ActiveSupport::TestCase
assert_match(/Usage:.*dbconsole/, stdout)
end
- private
attr_reader :aborted, :output
+ private :aborted, :output
+
+ private
def dbconsole
@dbconsole ||= Rails::DBConsole.new(nil)