Sha256: 32727e2a0844ddcac248d8507d57af5cfc975df2af3a9346912f1521a596f68b

Contents?: true

Size: 668 Bytes

Versions: 35

Compression:

Stored size: 668 Bytes

Contents

require 'spec_helper'

describe ActiveFedora::Property do
  before do
    @test_property = described_class.new(instance_double(ActiveFedora::Base), "file_name", :string)
  end

  it 'provides .new' do
    expect(described_class).to respond_to(:new)
  end

  it 'provides .name' do
    expect(described_class).to respond_to(:name)
  end

  it 'provides .instance_variable_name' do
    expect(@test_property).to respond_to(:instance_variable_name)
  end

  describe '.instance_variable_name' do
    it 'returns the value of the name attribute with an @ appended' do
      expect(@test_property.instance_variable_name).to eql("@#{@test_property.name}")
    end
  end
end

Version data entries

35 entries across 35 versions & 1 rubygems

Version Path
active-fedora-12.2.4 spec/unit/property_spec.rb
active-fedora-12.2.3 spec/unit/property_spec.rb
active-fedora-11.5.6 spec/unit/property_spec.rb
active-fedora-12.2.2 spec/unit/property_spec.rb
active-fedora-11.2.1 spec/unit/property_spec.rb
active-fedora-12.2.1 spec/unit/property_spec.rb
active-fedora-12.0.3 spec/unit/property_spec.rb
active-fedora-11.5.5 spec/unit/property_spec.rb
active-fedora-13.1.2 spec/unit/property_spec.rb
active-fedora-13.1.1 spec/unit/property_spec.rb
active-fedora-13.1.0 spec/unit/property_spec.rb
active-fedora-13.0.0 spec/unit/property_spec.rb
active-fedora-12.1.1 spec/unit/property_spec.rb
active-fedora-12.1.0 spec/unit/property_spec.rb
active-fedora-11.5.4 spec/unit/property_spec.rb
active-fedora-11.5.3 spec/unit/property_spec.rb
active-fedora-12.0.2 spec/unit/property_spec.rb
active-fedora-12.0.1 spec/unit/property_spec.rb
active-fedora-11.5.2 spec/unit/property_spec.rb
active-fedora-12.0.0 spec/unit/property_spec.rb