Sha256: 57419fb3ffe01de626248ee4747c639ae146ddddfa1aa70610786c98e2b20f82

Contents?: true

Size: 490 Bytes

Versions: 22

Compression:

Stored size: 490 Bytes

Contents

require 'test_helper'

module Guts
  class MetafieldTest < ActiveSupport::TestCase
    test 'should not create without key' do
      metafield = Metafield.new
      
      assert_not metafield.save
    end
    
    test 'should belong to a fieldable type' do
      metafield = guts_metafields :metafield_for_content

      assert metafield.fieldable
    end
    
    test 'metafield should be multisite compatible' do
      assert Metafield.all.to_sql.include?('site_id')
    end
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
guts-3.1.2 test/models/guts/metafield_test.rb
guts-3.1.1 test/models/guts/metafield_test.rb
guts-3.1.0 test/models/guts/metafield_test.rb
guts-3.0.1 test/models/guts/metafield_test.rb
guts-3.0.0 test/models/guts/metafield_test.rb
guts-2.1.0 test/models/guts/metafield_test.rb
guts-2.0.2 test/models/guts/metafield_test.rb
guts-2.0.1 test/models/guts/metafield_test.rb
guts-2.0.0 test/models/guts/metafield_test.rb
guts-1.4.0 test/models/guts/metafield_test.rb
guts-1.3.6 test/models/guts/metafield_test.rb
guts-1.3.5 test/models/guts/metafield_test.rb
guts-1.3.4 test/models/guts/metafield_test.rb
guts-1.3.3 test/models/guts/metafield_test.rb
guts-1.3.2 test/models/guts/metafield_test.rb
guts-1.3.1 test/models/guts/metafield_test.rb
guts-1.3.0 test/models/guts/metafield_test.rb
guts-1.2.2 test/models/guts/metafield_test.rb
guts-1.2.1 test/models/guts/metafield_test.rb
guts-1.2.0 test/models/guts/metafield_test.rb