Sha256: be106f62acae917518f3a93cc63be8b25f3a0bbe843eb87ec3728233f5b37ae1

Contents?: true

Size: 347 Bytes

Versions: 9

Compression:

Stored size: 347 Bytes

Contents

require 'test_helper'

module Guts
  class SiteTest < ActiveSupport::TestCase
    test 'should not create without name or domain' do
      site = Site.new

      assert_not site.save
    end

    test 'should return metafields for site' do
      site = guts_sites :default_site

      assert_operator site.metafields.size, :>, 0
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
guts-3.1.2 test/models/guts/site_test.rb
guts-3.1.1 test/models/guts/site_test.rb
guts-3.1.0 test/models/guts/site_test.rb
guts-3.0.1 test/models/guts/site_test.rb
guts-3.0.0 test/models/guts/site_test.rb
guts-2.1.0 test/models/guts/site_test.rb
guts-2.0.2 test/models/guts/site_test.rb
guts-2.0.1 test/models/guts/site_test.rb
guts-2.0.0 test/models/guts/site_test.rb