Sha256: 290534f99772969e0a07ca8b638ee3936694e0e18a7b47825ebe2935dd479c9b

Contents?: true

Size: 787 Bytes

Versions: 28

Compression:

Stored size: 787 Bytes

Contents

$: << File.join(File.dirname(__FILE__), "../lib")

require 'architecture-js'
require 'fileutils'
require 'rspec'
require 'digest/md5'
require 'fixtures/test_blueprint.rb'

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_directory}/spec"
TMP_DIR = "#{SPEC_DIR}/tmp"
FIXTURES = "#{SPEC_DIR}/fixtures"

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
architecture-js-0.6.3 spec/spec_helper.rb
architecture-js-0.6.2 spec/spec_helper.rb
architecture-js-0.6.1 spec/spec_helper.rb
architecture-js-0.6.0 spec/spec_helper.rb
architecture-js-0.5.8 spec/spec_helper.rb
architecture-js-0.5.7 spec/spec_helper.rb
architecture-js-0.5.6 spec/spec_helper.rb
architecture-js-0.5.5 spec/spec_helper.rb
architecture-js-0.5.4 spec/spec_helper.rb
architecture-js-0.5.3 spec/spec_helper.rb
architecture-js-0.5.2 spec/spec_helper.rb
architecture-js-0.5.1 spec/spec_helper.rb
architecture-js-0.5.0 spec/spec_helper.rb
architecture-js-0.4.0 spec/spec_helper.rb
architecture-js-0.3.8 spec/spec_helper.rb
architecture-js-0.3.7 spec/spec_helper.rb
architecture-js-0.3.6 spec/spec_helper.rb
architecture-js-0.3.5 spec/spec_helper.rb
architecture-js-0.3.4 spec/spec_helper.rb
architecture-js-0.3.3 spec/spec_helper.rb