Sha256: d87cf472048db558f0d5599f82d9c5afab61da328c6c0b62d50dff4a27d1051e

Contents?: true

Size: 1.31 KB

Versions: 34

Compression:

Stored size: 1.31 KB

Contents

require File.join( File.dirname(__FILE__), "../spec_helper" )

require 'active_fedora'
require 'active_fedora/model'
require 'mocha'
include Mocha::API

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

  describe '.new' do
    
    it 'should use assertions to check types of incoming args'
    
    # This could rely on property_set and in turn serialize to a 'properties' metadata datastream...
    it 'should add corresponding field to the properties datastream'
      
    it 'should add field to repository indexer (ie. solr)'
  end
  
  it 'should provide .name' do
    ActiveFedora::Property.should respond_to(:name)
  end

  describe '.name' do
    it 'should return the value of the name attribute' do
      
    end
  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

34 entries across 34 versions & 1 rubygems

Version Path
active-fedora-3.1.4 spec/unit/property_spec.rb
active-fedora-3.1.3 spec/unit/property_spec.rb
active-fedora-3.1.2 spec/unit/property_spec.rb
active-fedora-3.1.1 spec/unit/property_spec.rb
active-fedora-3.1.0 spec/unit/property_spec.rb
active-fedora-3.1.0.rc4 spec/unit/property_spec.rb
active-fedora-3.1.0.rc3 spec/unit/property_spec.rb
active-fedora-3.1.0.rc2 spec/unit/property_spec.rb
active-fedora-3.1.0.rc1 spec/unit/property_spec.rb
active-fedora-3.1.0.pre14 spec/unit/property_spec.rb
active-fedora-3.1.0.pre13 spec/unit/property_spec.rb
active-fedora-3.1.0.pre12 spec/unit/property_spec.rb
active-fedora-3.1.0.pre11 spec/unit/property_spec.rb
active-fedora-3.1.0.pre10 spec/unit/property_spec.rb
active-fedora-3.1.0.pre9 spec/unit/property_spec.rb
active-fedora-3.0.7 spec/unit/property_spec.rb
active-fedora-3.0.6 spec/unit/property_spec.rb
active-fedora-3.1.0.pre8 spec/unit/property_spec.rb
active-fedora-3.1.0.pre7 spec/unit/property_spec.rb
active-fedora-3.1.0.pre6 spec/unit/property_spec.rb