Sha256: fae1851fb26d620f4bff5366624621342447b4b5bb817731580faa2a2f54ab6d

Contents?: true

Size: 872 Bytes

Versions: 2

Compression:

Stored size: 872 Bytes

Contents

require 'spec_helper'

describe FcrepoWrapper::Instance do
  let(:wrapper) { described_class.new }

  describe "#host" do
    subject { wrapper.host }
    it { is_expected.to eq '127.0.0.1' }
  end

  describe "#port" do
    subject { wrapper.port }
    it { is_expected.to eq '8080' }
  end

  describe "#url" do
    subject { wrapper.url }
    it { is_expected.to eq 'http://127.0.0.1:8080/' }
  end

  describe "#version" do
    subject { wrapper.version }
    it { is_expected.to eq FcrepoWrapper.default_fcrepo_version }
  end

  describe "#md5" do
    subject { wrapper.md5 }
    it { is_expected.to be_instance_of FcrepoWrapper::MD5 }
  end

  describe "#instance_dir" do
    subject { File.exists?(wrapper.instance_dir) }
    it { is_expected.to be true }
  end

  describe "#options" do
    subject { wrapper.options }
    it { is_expected.to eq({}) }
  end 
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
fcrepo_wrapper-0.5.2 spec/lib/fcrepo_wrapper/instance_spec.rb
fcrepo_wrapper-0.5.1 spec/lib/fcrepo_wrapper/instance_spec.rb