Sha256: c4e945ff7f1f4ef0e338502b6f8d875c2a4482d9fd09d2817ce0adef0e757e65

Contents?: true

Size: 318 Bytes

Versions: 7

Compression:

Stored size: 318 Bytes

Contents

require 'schema_dev/gemfile_selector'

describe SchemaDev::GemfileSelector do

  it "infers db from env" do
    test_dbname = 'this_is_a_test'
    ENV['BUNDLE_GEMFILE'] = SchemaDev::GemfileSelector.gemfile(rails: '4.1', db: test_dbname).to_s
    expect(SchemaDev::GemfileSelector.infer_db).to eq test_dbname
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
schema_dev-2.0.4 spec/gemfile_sepector_spec.rb
schema_dev-2.0.3 spec/gemfile_sepector_spec.rb
schema_dev-2.0.2 spec/gemfile_sepector_spec.rb
schema_dev-2.0.1 spec/gemfile_sepector_spec.rb
schema_dev-2.0.0 spec/gemfile_sepector_spec.rb
schema_dev-1.4.0 spec/gemfile_sepector_spec.rb
schema_dev-1.3.0 spec/gemfile_sepector_spec.rb