Permalink
Browse files

Spec wasn't running properly

  • Loading branch information...
1 parent c9e83dd commit a2f1e280c487c99d0dc4cc25db9da9f33b7e3a50 @rfelix committed Jan 18, 2010
Showing with 6 additions and 2 deletions.
  1. +6 −2 specs/aop_spec.rb
View
@@ -1,4 +1,4 @@
-require File.join(File.dirname(__FILE__), 'aop')
+require File.join(File.dirname(__FILE__), '..', 'aop', 'aop.rb')
require 'stringio'
def catch_output
@@ -131,10 +131,14 @@ def feed(*food)
it "must return 'diet' when aborted" do
AOP.around(GuineaPig, :eat) do |instance, args, proceed, abort|
- abort.call("diet")
proceed.call
end
+ AOP.around(GuineaPig, :eat) do |instance, args, proceed, abort|
+ abort.call("diet")
+ proceed.call
+ end
+
GuineaPig.new.eat.should == "diet"
end

0 comments on commit a2f1e28

Please sign in to comment.