File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed
Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ module AttrVersionDefaults
2424 VERSIONS = ( ( 0.0 r..FUTURE_VERSION ) % 0.1 r) . to_a . freeze
2525
2626 # See Config.version_defaults.
27- singleton_class . attr_accessor :version_defaults
27+ singleton_class . attr_reader :version_defaults
2828
2929 @version_defaults = Hash . new { |h , k |
3030 # NOTE: String responds to both so the order is significant.
Original file line number Diff line number Diff line change @@ -151,6 +151,10 @@ class ConfigTest < Net::IMAP::TestCase
151151 end
152152 assert_same Config . global , config . parent
153153 end
154+ assert_raise ( NameError ) do Config . method ( :version_defaults= ) end
155+ assert_raise ( NameError ) do
156+ Config ::AttrVersionDefaults . method ( :version_defaults= )
157+ end
154158 end
155159
156160 test "Config[:default] and Config[:current] both hold default config" do
You can’t perform that action at this time.
0 commit comments