Sha256: 68bcdd74ae8045385151ccc72000d1d13f1c3c5ca0d3d17ebc05b894bec4bbe7

Contents?: true

Size: 494 Bytes

Versions: 4

Compression:

Stored size: 494 Bytes

Contents

require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
require 'fileutils'

describe Mutagem::Lockfile do

  before(:each) do
    # remove tmp/aruba
    FileUtils.rm_rf(current_dir)
  end

  it "should raise ArgumentError if initialized without a lock filename" do
    in_current_dir do
      lambda {Mutagem::Lockfile.new}.should raise_error(ArgumentError, 'lockfile not specified')
      lambda {Mutagem::Lockfile.new('mylock.lock')}.should_not raise_error
    end
  end

end


Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
mutagem-0.2.4 spec/mutagem/lockfile_spec.rb
mutagem-0.2.3 spec/mutagem/lockfile_spec.rb
mutagem-0.2.2 spec/mutagem/lockfile_spec.rb
mutagem-0.2.1 spec/mutagem/lockfile_spec.rb