Sha256: 69a1a96a7ad7eeca6c624abed58c84ed41ed91fa4c1a9314de243c78082497d2
Contents?: true
Size: 744 Bytes
Versions: 12
Compression:
Stored size: 744 Bytes
Contents
$: << File.join(File.dirname(__FILE__), "../lib") require 'architecture-js' require 'fileutils' require 'rspec' require 'digest/md5' RSpec.configure do |config| config.color_enabled = true end RSpec::Matchers.define(:be_same_file_as) do |epxected_file_path| match do |actual_file_path| md5_hash(actual_file_path).should == md5_hash(epxected_file_path) end def md5_hash(file_path) Digest::MD5.hexdigest(File.read(file_path)) end end def suppress_output(&block) original_stdout = $stdout $stdout = fake = StringIO.new begin yield ensure $stdout = original_stdout end fake.string end SPEC_DIR = "#{ArchitectureJS::BASE_DIR}/spec" TMP_DIR = "#{SPEC_DIR}/tmp" FIXTURES = "#{SPEC_DIR}/fixtures"
Version data entries
12 entries across 12 versions & 1 rubygems