Sha256: 9ba9a8ce277efb3d50092a7344adeb7e417c565c06a733fba07d77dbf59ac0d9

Contents?: true

Size: 827 Bytes

Versions: 96

Compression:

Stored size: 827 Bytes

Contents

require 'spec_helper'

require 'active_fedora'
require 'active_fedora/model'

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

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

  
  it 'should provide .instance_variable_name' do
    #ActiveFedora::Property.should respond_to(:instance_variable_name)
    
    @test_property.should respond_to(:instance_variable_name)
  end

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

Version data entries

96 entries across 96 versions & 1 rubygems

Version Path
active-fedora-7.3.1 spec/unit/property_spec.rb
active-fedora-7.3.0 spec/unit/property_spec.rb
active-fedora-8.2.1 spec/unit/property_spec.rb
active-fedora-8.2.0 spec/unit/property_spec.rb
active-fedora-7.2.0 spec/unit/property_spec.rb
active-fedora-8.1.0 spec/unit/property_spec.rb
active-fedora-8.0.1 spec/unit/property_spec.rb
active-fedora-8.0.0 spec/unit/property_spec.rb
active-fedora-8.0.0.rc3 spec/unit/property_spec.rb
active-fedora-8.0.0.rc2 spec/unit/property_spec.rb
active-fedora-8.0.0.rc1 spec/unit/property_spec.rb
active-fedora-7.1.2 spec/unit/property_spec.rb
active-fedora-7.1.1 spec/unit/property_spec.rb
active-fedora-7.1.0 spec/unit/property_spec.rb
active-fedora-6.7.8 spec/unit/property_spec.rb
active-fedora-7.0.4 spec/unit/property_spec.rb
active-fedora-7.0.3 spec/unit/property_spec.rb
active-fedora-7.0.2 spec/unit/property_spec.rb
active-fedora-7.0.1 spec/unit/property_spec.rb
active-fedora-7.0.0 spec/unit/property_spec.rb