spec/bogus/copies_classes_spec.rb in bogus-0.0.1 vs spec/bogus/copies_classes_spec.rb in bogus-0.0.2

- old
+ new

@@ -169,7 +169,21 @@ let(:klass) { ClassWithClassMethods } subject { fake_class } include_examples 'spying' end + + class SomeModel + def save(*) + # ignores arguments + end + end + + context "copying classes with methods with nameless parameters" do + let(:klass) { SomeModel } + + it "copies those methods" do + fake.should respond_to(:save) + end + end end