Sha256: d031ce0342adaca1aafbc504e2ddbfdca69dae854ade8f83bb78ba7f41c061f9

Contents?: true

Size: 770 Bytes

Versions: 33

Compression:

Stored size: 770 Bytes

Contents

require 'spec_helper'

require 'active_fedora'
require 'active_fedora/model'

describe ActiveFedora::Property do
  
  before(:each) do
    @test_property = ActiveFedora::Property.new(double("model_stub"),"file_name", :string)
  end
  
  it 'should provide .new' do
    expect(ActiveFedora::Property).to respond_to(:new)
  end

  it 'should provide .name' do
    expect(ActiveFedora::Property).to respond_to(:name)
  end

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

  describe '.instance_variable_name' do
    it 'should return 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

33 entries across 33 versions & 1 rubygems

Version Path
active-fedora-9.0.8 spec/unit/property_spec.rb
active-fedora-9.5.0 spec/unit/property_spec.rb
active-fedora-9.4.3 spec/unit/property_spec.rb
active-fedora-9.4.2 spec/unit/property_spec.rb
active-fedora-9.4.1 spec/unit/property_spec.rb
active-fedora-9.4.0 spec/unit/property_spec.rb
active-fedora-9.3.0 spec/unit/property_spec.rb
active-fedora-9.2.1 spec/unit/property_spec.rb
active-fedora-9.2.0 spec/unit/property_spec.rb
active-fedora-9.2.0.rc2 spec/unit/property_spec.rb
active-fedora-9.2.0.rc1 spec/unit/property_spec.rb
active-fedora-9.1.2 spec/unit/property_spec.rb
active-fedora-9.1.1 spec/unit/property_spec.rb
active-fedora-9.1.0 spec/unit/property_spec.rb
active-fedora-9.1.0.rc1 spec/unit/property_spec.rb
active-fedora-9.0.6 spec/unit/property_spec.rb
active-fedora-9.0.5 spec/unit/property_spec.rb
active-fedora-9.0.4 spec/unit/property_spec.rb
active-fedora-9.0.3 spec/unit/property_spec.rb
active-fedora-9.0.2 spec/unit/property_spec.rb