Changeset 4839
- Timestamp:
- 08/29/06 08:24:04 (2 years ago)
- Files:
-
- trunk/activesupport/lib/active_support/core_ext/module/attr_internal.rb (modified) (1 diff)
- trunk/activesupport/lib/active_support/deprecation.rb (modified) (1 diff)
- trunk/activesupport/lib/active_support/vendor/builder/xmlbase.rb (modified) (1 diff)
- trunk/activesupport/Rakefile (modified) (1 diff)
- trunk/activesupport/test/core_ext/name_error_test.rb (modified) (3 diffs)
- trunk/activesupport/test/core_ext/object_and_class_ext_test.rb (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/activesupport/lib/active_support/core_ext/module/attr_internal.rb
r4692 r4839 16 16 # Declare attributes backed by 'internal' instance variables names. 17 17 def attr_internal_accessor(*attrs) 18 attr_internal_reader *attrs19 attr_internal_writer *attrs18 attr_internal_reader(*attrs) 19 attr_internal_writer(*attrs) 20 20 end 21 21 trunk/activesupport/lib/active_support/deprecation.rb
r4760 r4839 19 19 # Have deprecations been silenced? 20 20 def silenced? 21 @silenced = false unless defined?(@silenced) 21 22 @silenced 22 23 end trunk/activesupport/lib/active_support/vendor/builder/xmlbase.rb
r4260 r4839 54 54 raise ArgumentError, "XmlMarkup cannot mix a text argument with a block" 55 55 end 56 _capture_outer_self(block) if@self.nil?56 _capture_outer_self(block) unless defined?(@self) && !@self.nil? 57 57 _indent 58 58 _start_tag(sym, attrs) trunk/activesupport/Rakefile
r4321 r4839 19 19 t.pattern = 'test/**/*_test.rb' 20 20 t.verbose = true 21 t.warning = false21 t.warning = true 22 22 } 23 23 trunk/activesupport/test/core_ext/name_error_test.rb
r4681 r4839 1 require 'test/unit' 2 require File.dirname(__FILE__) + '/../../lib/active_support/core_ext/name_error' 1 require File.dirname(__FILE__) + '/../abstract_unit' 3 2 4 3 class NameErrorTest < Test::Unit::TestCase 5 6 4 def test_name_error_should_set_missing_name 7 5 begin … … 14 12 end 15 13 end 16 14 17 15 def test_missing_method_should_ignore_missing_name 18 16 begin … … 24 22 end 25 23 end 26 27 24 end trunk/activesupport/test/core_ext/object_and_class_ext_test.rb
r4595 r4839 79 79 assert foo.extended_by.include?(Bar) 80 80 foo.extend(Baz) 81 assert ([Bar, Baz] - foo.extended_by).empty?, "Expected Bar, Baz in #{foo.extended_by.inspect}"81 assert(([Bar, Baz] - foo.extended_by).empty?, "Expected Bar, Baz in #{foo.extended_by.inspect}") 82 82 end 83 83