spec/sugar-high/methods_spec.rb in sugar-high-0.6.3 vs spec/sugar-high/methods_spec.rb in sugar-high-0.7.0
- old
+ new
@@ -9,23 +9,23 @@
protected
def howdy_kristian
'hi'
end
-
+
private
-
+
def humm_kristian
'hi'
- end
-end
+ end
+end
describe "SugarHigh" do
describe "Methods" do
before do
@obj = Abc.new
end
-
+
it "should find all 3 methods saying 'hi' to kristian" do
@obj.get_methods(:all).sort.grep(/(.*)_kristian$/).should have(3).items
end
it "should find public methods saying 'hi' to kristian" do