Sha256: d212589a3fa8cc6aeab153a7323ffd0fbba6ab31836a716b6381c350f9278dcd

Contents?: true

Size: 845 Bytes

Versions: 8

Compression:

Stored size: 845 Bytes

Contents

require 'spec_helper'

require 'active_fedora'
require 'active_fedora/model'

describe ActiveFedora::Property do
  
  before(:all) 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
    #ActiveFedora::Property.should respond_to(:instance_variable_name)
    
    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

8 entries across 8 versions & 1 rubygems

Version Path
active-fedora-8.7.0 spec/unit/property_spec.rb
active-fedora-8.6.0 spec/unit/property_spec.rb
active-fedora-8.5.0 spec/unit/property_spec.rb
active-fedora-8.4.2 spec/unit/property_spec.rb
active-fedora-8.4.1 spec/unit/property_spec.rb
active-fedora-8.4.0 spec/unit/property_spec.rb
active-fedora-8.3.0 spec/unit/property_spec.rb
active-fedora-8.2.2 spec/unit/property_spec.rb