# File lib/generator_spec/matcher.rb, line 16defcontains(text)
@contents<<textend
matches?(root)click to toggle source
# File lib/generator_spec/matcher.rb, line 20defmatches?(root)
unlessroot.join(@name).exist?throw:failure, root.join(@name)
endcheck_contents(root.join(@name))
end