Sha256: fafd8ac1c3109eaa2bf79d5129dffc6472d88eba94b7456525aa2d3372377051

Contents?: true

Size: 457 Bytes

Versions: 9

Compression:

Stored size: 457 Bytes

Contents

require 'spec_helper'
require 'donjon/repository'

describe Donjon::Repository do
  let(:uid) { "%08x" % rand(1<<32) }
  let(:options) {[
    "/tmp/donjon-#{uid}"
  ]}

  subject { described_class.new(*options) }

  describe '#initialize' do
    it 'passes with valid options' do
      expect { subject }.not_to raise_error
    end
  end

  describe '#to_s' do
    it 'returns the path' do
      expect(subject.to_s).to eq(options.first)
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
donjon-2.0.1 spec/donjon/repository_spec.rb
donjon-2.0.0 spec/donjon/repository_spec.rb
donjon-1.0.1 spec/donjon/repository_spec.rb
donjon-1.0.0 spec/donjon/repository_spec.rb
donjon-0.0.5 spec/donjon/repository_spec.rb
donjon-0.0.4 spec/donjon/repository_spec.rb
donjon-0.0.3 spec/donjon/repository_spec.rb
donjon-0.0.2 spec/donjon/repository_spec.rb
donjon-0.0.1 spec/donjon/repository_spec.rb