Sha256: 5be8438d6ff1f41e817280af61c211098c7a8c1443c492ebf27c0d4e177a3cad

Contents?: true

Size: 557 Bytes

Versions: 6

Compression:

Stored size: 557 Bytes

Contents

require File.dirname(__FILE__) + "/../helpers"

class IntegrityTest < Test::Unit::TestCase
  test "Integrity.new loads configuration from a file" do
    stub(DataMapper).setup { nil }

    file = File.dirname(__FILE__) + "/../../config/config.sample.yml"
    Integrity.new(file)

    Integrity.config[:base_uri].should == "http://integrity.domain.tld"
    Integrity.config[:export_directory].should == "/path/to/scm/exports"
  end

  specify "config is just a hash" do
    Integrity.config[:foo] = "bar"
    Integrity.config[:foo].should == "bar"
  end
end

Version data entries

6 entries across 6 versions & 3 rubygems

Version Path
foca-integrity-0.1.9.0 test/unit/integrity_test.rb
foca-integrity-0.1.9.1 test/unit/integrity_test.rb
oliyoung-integrity-0.1.9.0 test/unit/integrity_test.rb
integrity-0.1.9.0 test/unit/integrity_test.rb
integrity-0.1.9.1 test/unit/integrity_test.rb
integrity-0.1.9 test/unit/integrity_test.rb