test/conducer_test.rb in dao-7.0.0 vs test/conducer_test.rb in dao-8.0.0

- old
+ new

@@ -496,11 +496,11 @@ mount Dao::Upload, :up, :placeholder => '/images/foo.jpg' end path = File.join(File.dirname(__FILE__), 'data/han-solo.jpg') assert{ test(?s, path) } - up = Upload.new(path) + _up = Upload.new(path) comment = Comment.new c = conducer_class.new( comment, :up => {:file => Upload.new(path)} ) upload = assert{ c.get(:up) } @@ -510,12 +510,12 @@ assert{ File.basename(upload.path) == File.basename(path) } assert{ IO.read(upload.path) == IO.read(path) } assert{ c.save } - value_was_relayed = assert{ comment.attributes[:up] == upload._value } - value_was_cleared = assert{ !test(?f, upload.path) } + _value_was_relayed = assert{ comment.attributes[:up] == upload._value } + _value_was_cleared = assert{ !test(?f, upload.path) } assert{ test(?s, path) } ensure $pry=false end @@ -703,10 +703,10 @@ hash.each{|k,v| attributes[k] = v } end def method_missing(method, *args, &block) re = /^([^=!?]+)([=!?])?$/imox - matched, key, suffix = re.match(method.to_s).to_a + _matched, key, suffix = re.match(method.to_s).to_a case suffix when '=' then attributes.set(key, args.first) when '!' then attributes.set(key, args.size > 0 ? args.first : true) when '?' then attributes.has?(key)