Sha256: d53344a234302c2abd9d2fae50dd9e53d57018fb199e846f53212887698119eb
Contents?: true
Size: 863 Bytes
Versions: 14
Compression:
Stored size: 863 Bytes
Contents
require 'simplecov' SimpleCov.start $: << File.join(File.dirname(__FILE__), "../lib") require 'rubygems' require 'architecture-js' require 'modjs-architecture' 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 = File.expand_path File.dirname(__FILE__) TMP_DIR = "#{SPEC_DIR}/tmp" FIXTURES = "#{SPEC_DIR}/fixtures" MODJS_ROOT = File.expand_path('../', SPEC_DIR)
Version data entries
14 entries across 14 versions & 1 rubygems