Permalink
Browse files

Add spec for arguments and super with explicit args

  • Loading branch information...
1 parent 069b939 commit 587358dbfe8d694e8b5faaa73bae8d0ecb2171c3 @kevinclark committed Mar 19, 2009
Showing with 6 additions and 0 deletions.
  1. +6 −0 spec/argument_duster_spec.rb
@@ -29,6 +29,12 @@
duster.warnings.should == []
end
+ it "should create warnings when calling super with explicit arguments" do
+ duster = Dust::ArgumentDuster.new(LocalVariableBadness, :super_with_explicit_args)
+ duster.dust!
+ duster.warnings.should == [Dust::Warnings::UnusedArgument.new(:arg)]
+ end
+
it "should create warnings when calling super with explicit arguments but without referencing the passed arguments" do
duster = Dust::ArgumentDuster.new(LocalVariableBadness, :super_with_explicit_args)
duster.dust!

0 comments on commit 587358d

Please sign in to comment.