Sha256: 04026f311a4c589aeb545ed0b397a17168fd73816f9c1c11289154ad13541a94

Contents?: true

Size: 712 Bytes

Versions: 4

Compression:

Stored size: 712 Bytes

Contents

require 'spec_helper'
shared_examples 'with_access_rights' do

  it "has an under_embargo?" do
    expect {
      subject.under_embargo?
    }.to_not raise_error(NoMethodError)
  end

  it "has a visibility attribute" do
    expect(subject).to respond_to(:visibility)
    expect(subject).to respond_to(:visibility=)
  end

  it "has an open_access?" do
    expect {
      subject.open_access?
    }.to_not raise_error(NoMethodError)
  end

  it "has an authenticated_only_access?" do
    expect {
      subject.authenticated_only_access?
    }.to_not raise_error(NoMethodError)
  end

  it "has an private_access?" do
    expect {
      subject.private_access?
    }.to_not raise_error(NoMethodError)
  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
curate-0.1.3 spec/support/shared/shared_examples_with_access_rights.rb
curate-0.1.2 spec/support/shared/shared_examples_with_access_rights.rb
curate-0.1.1 spec/support/shared/shared_examples_with_access_rights.rb
curate-0.1.0 spec/support/shared/shared_examples_with_access_rights.rb