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

Version Path
architecture-js-0.1.11 spec/spec_helper.rb
architecture-js-0.1.10 spec/spec_helper.rb
architecture-js-0.1.9 spec/spec_helper.rb
architecture-js-0.1.8 spec/spec_helper.rb
architecture-js-0.1.7 spec/spec_helper.rb
architecture-js-0.1.6 spec/spec_helper.rb
architecture-js-0.1.5 spec/spec_helper.rb
architecture-js-0.1.4 spec/spec_helper.rb
architecture-js-0.1.3 spec/spec_helper.rb
architecture-js-0.1.2 spec/spec_helper.rb
architecture-js-0.1.1 spec/spec_helper.rb
architecture-js-0.1.0 spec/spec_helper.rb