Permalink
Browse files

fix xml.instruct bug when arguments are used

  • Loading branch information...
1 parent b7a0372 commit 89b36e57e949fa9f70847b8be2214308bbc8b10f @davidhq davidhq committed Jul 26, 2009
Showing with 6 additions and 1 deletion.
  1. +1 −1 lib/asbestos.rb
  2. +5 −0 spec/asbestos_spec.rb
View
@@ -46,7 +46,7 @@ def target!
@target
end
- def instruct!
+ def instruct!(*args)
end
def tag!(sym, *args, &block)
View
@@ -54,6 +54,11 @@ def to_json
to_json.should == '{}'
end
+ it "should ignore instruct when used with attributes" do
+ @json.instruct! :xml, :version => "1.0"
+ to_json.should == '{}'
+ end
+
it "should support ignores" do
@json = described_class.new(:ignore => ['foo'])
@json.foo do

0 comments on commit 89b36e5

Please sign in to comment.