Sha256: 0a5145d424d6bce6a7f5a4cf5205566d69e30bd31f0631773a6647123b18dd76

Contents?: true

Size: 884 Bytes

Versions: 55

Compression:

Stored size: 884 Bytes

Contents

require 'albacore/task_types/asmver'

describe ::Albacore::Asmver::Config, 'when setting attributes and out' do
  let :strio do
    StringIO.new
  end
  subject do
    ::Albacore::Asmver::Config.new
  end
  def task
    @task
  end
  before :each do
    subject.file_path = 'Version.fs'
    subject.namespace = 'Hello.World'
    subject.attributes guid: 'b766f4f3-3f4e-49d0-a451-9c152059ae81',
      assembly_version: '0.1.2'
    subject.out = strio
    @task = ::Albacore::Asmver::Task.new(subject.opts)
    @task.execute
  end
  it 'should write namespace' do
    strio.string.should include('namespace Hello.World')
  end
  it 'should write Guid("...")' do
    strio.string.should include('[<assembly: Guid("b766f4f3-3f4e-49d0-a451-9c152059ae81")>]')
  end
  it 'should write AssemblyVersion' do
    strio.string.should include('[<assembly: AssemblyVersion("0.1.2")>]')
  end
end

Version data entries

55 entries across 55 versions & 1 rubygems

Version Path
albacore-2.3.6 spec/asmver_task_spec.rb
albacore-2.3.5 spec/asmver_task_spec.rb
albacore-2.3.4 spec/asmver_task_spec.rb
albacore-2.3.3 spec/asmver_task_spec.rb
albacore-2.3.2 spec/asmver_task_spec.rb
albacore-2.3.1 spec/asmver_task_spec.rb
albacore-2.3.0 spec/asmver_task_spec.rb
albacore-2.2.1 spec/asmver_task_spec.rb
albacore-2.2.0 spec/asmver_task_spec.rb
albacore-2.2.0.pre.beta.7 spec/asmver_task_spec.rb
albacore-2.2.0.pre.beta.6 spec/asmver_task_spec.rb
albacore-2.2.0.pre.beta.5 spec/asmver_task_spec.rb
albacore-2.2.0.pre.beta.4 spec/asmver_task_spec.rb
albacore-2.2.0.pre.beta.3 spec/asmver_task_spec.rb
albacore-2.2.0.pre.beta.2 spec/asmver_task_spec.rb
albacore-2.2.0.pre.beta spec/asmver_task_spec.rb
albacore-2.1.2 spec/asmver_task_spec.rb
albacore-2.1.1 spec/asmver_task_spec.rb
albacore-2.0.16 spec/asmver_task_spec.rb
albacore-2.0.15 spec/asmver_task_spec.rb