lib/ae/expect.rb in ae-1.7.4 vs lib/ae/expect.rb in ae-1.8.0
- old
+ new
@@ -1,8 +1,7 @@
-require 'ae/assertor'
-
module AE
+ require 'ae/assertor'
# = Expect
#
# "When love and skill work together, expect a masterpiece."
# --John Ruskin (1819 - 1900)
@@ -55,10 +54,11 @@
alias_method :forbid, :expect!
# Like #expect but uses the reciever as the object
# of expectation.
#
+ # @example
# /x/.expected do
# "oooxooo"
# end
#
def expected(*args, &block)
@@ -67,9 +67,6 @@
end
end
-class ::Object #:nodoc:
- include AE::Expect
-end
-
+# Copyright (c) 2008 Thomas Sawyer