Sha256: b82e49b480938b050af428c54f97c922fb555e2cedf5a14e9f6c9a00b90d4161
Contents?: true
Size: 606 Bytes
Versions: 2
Compression:
Stored size: 606 Bytes
Contents
module GenSpec module Matchers class ResultMatcher < GenSpec::Matchers::Base attr_reader :filename def initialize(filename, &block) @filename = filename super(&block) end def generated path = File.join(destination_root, filename) if File.exist?(path) match! spec_file_contents(path) end end def failure_message "Expected to generate #{filename}" end def negative_failure_message "Expected to not generate #{filename}" end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
genspec-0.2.0.prerails3.2 | lib/genspec/matchers/result_matcher.rb |
genspec-0.2.0.prerails3.1 | lib/genspec/matchers/result_matcher.rb |