Sha256: c47cfc38983c88965b53129eae5dead9d185a3977ceb2341273efc84923c192b

Contents?: true

Size: 660 Bytes

Versions: 19

Compression:

Stored size: 660 Bytes

Contents

require 'spec_helper'

describe ActiveFedora::Property do
  before(:each) do
    @test_property = described_class.new(double("model_stub"), "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

19 entries across 19 versions & 1 rubygems

Version Path
active-fedora-10.3.0 spec/unit/property_spec.rb
active-fedora-10.3.0.rc2 spec/unit/property_spec.rb
active-fedora-11.0.0.rc7 spec/unit/property_spec.rb
active-fedora-10.3.0.rc1 spec/unit/property_spec.rb
active-fedora-11.0.0.rc6 spec/unit/property_spec.rb
active-fedora-10.2.1 spec/unit/property_spec.rb
active-fedora-11.0.0.rc5 spec/unit/property_spec.rb
active-fedora-11.0.0.rc4 spec/unit/property_spec.rb
active-fedora-10.2.0 spec/unit/property_spec.rb
active-fedora-11.0.0.rc3 spec/unit/property_spec.rb
active-fedora-11.0.0.rc2 spec/unit/property_spec.rb
active-fedora-11.0.0.rc1 spec/unit/property_spec.rb
active-fedora-10.1.0 spec/unit/property_spec.rb
active-fedora-10.1.0.rc1 spec/unit/property_spec.rb
active-fedora-10.0.0 spec/unit/property_spec.rb
active-fedora-10.0.0.beta4 spec/unit/property_spec.rb
active-fedora-10.0.0.beta3 spec/unit/property_spec.rb
active-fedora-10.0.0.beta2 spec/unit/property_spec.rb
active-fedora-10.0.0.beta1 spec/unit/property_spec.rb