spec/kernel_spec.rb in auser-poolparty-0.0.9 vs spec/kernel_spec.rb in auser-poolparty-0.1.0

- old
+ new

@@ -6,6 +6,19 @@ end it "should eval the string into time" do @host.should_receive(:sleep).once.and_return true @host.wait "10.seconds" end +end +describe "Object extensions" do + before(:each) do + @klass = Object.new + @klass.instance_eval <<-EOE + def hello + puts "hello" + end + EOE + end + it "should be able to get a list of the defined methods on the object" do + @klass.my_methods.should == ["hello"] + end end \ No newline at end of file