Sha256: aaf64b639ff3c604f91530c62566c1329807c5106f461706a92751a0d4684ec0

Contents?: true

Size: 514 Bytes

Versions: 13

Compression:

Stored size: 514 Bytes

Contents

require 'spec_helper'

describe CustomFields::ProxyClassEnabler do
  
  context '#proxy klass' do
  
    before(:each) do
      @klass = Task.to_klass_with_custom_fields([])
    end
  
    it 'does not be flagged as a inherited document' do
      @klass.new.hereditary?.should be_false
    end
    
    it 'has a list of custom fields' do
      @klass.custom_fields.should == []
    end
    
    it 'has the exact same model name than its parent' do
      @klass.model_name.should == 'Task'
    end
  
  end
  
end

Version data entries

13 entries across 13 versions & 2 rubygems

Version Path
custom_fields-0.0.0.1 spec/unit/proxy_class_enabler_spec.rb
locomotive_cms-0.0.3.3 vendor/plugins/custom_fields/spec/unit/proxy_class_enabler_spec.rb
locomotive_cms-0.0.3.1 vendor/plugins/custom_fields/spec/unit/proxy_class_enabler_spec.rb
locomotive_cms-0.0.2.9 vendor/plugins/custom_fields/spec/unit/proxy_class_enabler_spec.rb
locomotive_cms-0.0.2.8 vendor/plugins/custom_fields/spec/unit/proxy_class_enabler_spec.rb
locomotive_cms-0.0.2.7 vendor/plugins/custom_fields/spec/unit/proxy_class_enabler_spec.rb
locomotive_cms-0.0.2.6 vendor/plugins/custom_fields/spec/unit/proxy_class_enabler_spec.rb
locomotive_cms-0.0.2.5 vendor/plugins/custom_fields/spec/unit/proxy_class_enabler_spec.rb
locomotive_cms-0.0.2.4 vendor/plugins/custom_fields/spec/unit/proxy_class_enabler_spec.rb
locomotive_cms-0.0.2.3 vendor/plugins/custom_fields/spec/unit/proxy_class_enabler_spec.rb
locomotive_cms-0.0.2.2 vendor/plugins/custom_fields/spec/unit/proxy_class_enabler_spec.rb
locomotive_cms-0.0.2.1 vendor/plugins/custom_fields/spec/unit/proxy_class_enabler_spec.rb
locomotive_cms-0.0.2 vendor/plugins/custom_fields/spec/unit/proxy_class_enabler_spec.rb