Sha256: 898ff193684f56ea79ec0ceeabe991af5bce85e5a62fe92776d9d8c247eba7dc

Contents?: true

Size: 864 Bytes

Versions: 11

Compression:

Stored size: 864 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

11 entries across 11 versions & 1 rubygems

Version Path
modjs-architecture-0.7.1 spec/spec_helper.rb
modjs-architecture-0.7.0 spec/spec_helper.rb
modjs-architecture-0.6.8 spec/spec_helper.rb
modjs-architecture-0.6.7 spec/spec_helper.rb
modjs-architecture-0.6.6 spec/spec_helper.rb
modjs-architecture-0.6.4 spec/spec_helper.rb
modjs-architecture-0.6.3 spec/spec_helper.rb
modjs-architecture-0.6.2 spec/spec_helper.rb
modjs-architecture-0.6.1 spec/spec_helper.rb
modjs-architecture-0.6.0 spec/spec_helper.rb
modjs-architecture-0.4.0 spec/spec_helper.rb