Sha256: afa841f5365d8f9f4ed90681b96aed7c8ad82b1524825c745ff7d3ca8d177a58
Contents?: true
Size: 449 Bytes
Versions: 1
Compression:
Stored size: 449 Bytes
Contents
require 'rpub' FIXTURES_DIRECTORY = File.expand_path('../fixtures', __FILE__) RSpec::Matchers.define :remove_file do |filename| match do |block| before = File.exist?(filename) block.call after = File.exist?(filename) before && !after end end RSpec::Matchers.define :create_file do |filename| match do |block| before = File.exist?(filename) block.call after = File.exist?(filename) !before && after end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rpub-0.1.0 | spec/spec_helper.rb |