lib/matchers/document/document.rb in mongoid-minitest-0.0.3.1 vs lib/matchers/document/document.rb in mongoid-minitest-0.1.0
- old
+ new
@@ -10,20 +10,20 @@
include Helpers
def initialize(mod)
@mod = mod
end
-
+
def matches?(subject)
class_of(subject).included_modules.include?(@mod)
end
def description
msg = case
- when @mod == DOCUMENT then ""
- when @mod == PARANOIA then "paranoid "
- when @mod == VERSIONING then "versioned "
- when @mod == TIMESTAMPS then "timestamped "
+ when @mod == DOCUMENT then ''
+ when @mod == PARANOIA then 'paranoid '
+ when @mod == VERSIONING then 'versioned '
+ when @mod == TIMESTAMPS then 'timestamped '
else raise "Unknow Mongoid module #{@mod}"
end
"be a #{msg}Mongoid document"
end