Sha256: c6b4084f0c483e657e05d1645787cb15807bc3cb1491d75d8162599d1e8488df

Contents?: true

Size: 821 Bytes

Versions: 3

Compression:

Stored size: 821 Bytes

Contents

require 'helper'

module CouplerUnitTests
  class TestCoupler < Coupler::Test::UnitTest
    def test_db_path
      env = Coupler.environment
      expected = File.join(Coupler.data_path, 'db', env, 'ponies')
      assert_equal expected, Coupler.db_path("ponies")
    end

    def test_connection_string
      env = Coupler.environment
      expected = "jdbc:h2:#{File.join(Coupler.data_path, 'db', env, 'ponies')};IGNORECASE=TRUE"
      assert_equal expected, Coupler.connection_string("ponies")
    end

    def test_upload_path
      env = Coupler.environment
      expected = File.join(Coupler.data_path, 'uploads', env)
      assert_equal expected, Coupler.upload_path
    end

    def test_log_path
      expected = File.join(Coupler.data_path, 'log')
      assert_equal expected, Coupler.log_path
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
coupler-0.0.9-java test/unit/test_coupler.rb
coupler-0.0.8-java test/unit/test_coupler.rb
coupler-0.0.7-java test/unit/test_coupler.rb