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.0.14 spec/asmver_task_spec.rb
albacore-2.0.13 spec/asmver_task_spec.rb
albacore-2.0.12 spec/asmver_task_spec.rb
albacore-2.0.11 spec/asmver_task_spec.rb
albacore-2.0.10 spec/asmver_task_spec.rb
albacore-2.0.9 spec/asmver_task_spec.rb
albacore-2.0.8 spec/asmver_task_spec.rb
albacore-2.0.7 spec/asmver_task_spec.rb
albacore-2.0.6 spec/asmver_task_spec.rb
albacore-2.0.5 spec/asmver_task_spec.rb
albacore-2.0.4 spec/asmver_task_spec.rb
albacore-2.0.3 spec/asmver_task_spec.rb
albacore-2.0.2 spec/asmver_task_spec.rb
albacore-2.0.1 spec/asmver_task_spec.rb
albacore-2.0.0 spec/asmver_task_spec.rb
albacore-2.0.0.rc.21 spec/asmver_task_spec.rb
albacore-2.0.0.rc.20 spec/asmver_task_spec.rb
albacore-2.0.0.rc.19 spec/asmver_task_spec.rb
albacore-2.0.0.rc.18 spec/asmver_task_spec.rb
albacore-2.0.0.rc.17 spec/asmver_task_spec.rb