Sha256: 6a1a611945baebdd36ed574e14e045c1469b23bc670b463e9394ccefc883ea35

Contents?: true

Size: 470 Bytes

Versions: 2

Compression:

Stored size: 470 Bytes

Contents

require "test_helper"

class RoomerTest < ActiveSupport::TestCase

  test 'setup block yeilds self' do
    Roomer.setup do |config|
      assert_equal Roomer, config
    end
  end

  test 'return migrations directory' do
    assert_equal Roomer.tenanted_migrations_directory, "db/migrate"
    Roomer.use_tenanted_migrations_directory = true
    assert_equal Roomer.tenanted_migrations_directory, "db/migrate/tenanted"
  end

  test 'set the current tenant' do
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
roomer-1.0.1 test/roomer/roomer_test.rb
roomer-1.0.0 test/roomer/roomer_test.rb