spec/bogus/class_methods_spec.rb in bogus-0.1.0 vs spec/bogus/class_methods_spec.rb in bogus-0.1.1
- old
+ new
@@ -9,15 +9,21 @@
def self.bar(bam)
end
def self.hello
end
+
+ def self.__shadow__; end
+ def self.__reset__; end
+ def self.__overwrite__; end
+ def self.__overwritten_methods__; end
+ def self.__record__; end
end
let(:class_methods) { ClassMethods.new(SampleClass) }
- it "lists the instance methods" do
- class_methods.all.should == [:bar, :hello]
+ it "lists the class methods excluding the ones added by Bogus" do
+ class_methods.all.should =~ [:bar, :hello]
end
it "returns the instance methods by name" do
class_methods.get(:bar).should ==
SampleClass.method(:bar)