Sha256: 49932c392855f624eb53b80a6acbf72362eb81246157c429c2ddbdb250cff403

Contents?: true

Size: 685 Bytes

Versions: 2

Compression:

Stored size: 685 Bytes

Contents

require 'physique'

describe Physique::FluentMigratorConfig do
  it 'should find full project path when specifying the name and language' do
    project_name = 'Test.Database'
    opts = Physique::FluentMigratorConfig.new.tap { |c|
      c.project = project_name
      c.lang = :vb
    }.opts

    expect(opts.project_file).to eq("src/#{project_name}/#{project_name}.vbproj")
  end

  it 'should default to the cs programming language' do
    project_name = 'Test.Database'
    opts = Physique::FluentMigratorConfig.new.tap { |c|
      c.project = project_name
    }.opts

    expect(opts.project_file).to eq("src/#{project_name}/#{project_name}.csproj")
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
physique-0.3.0 spec/config_spec.rb
physique-0.2.2 spec/config_spec.rb