Sha256: 2d8ea4f018d8fbeb9f4e29149895e2493b9c540e80e65a94ee4be637cb48460b

Contents?: true

Size: 737 Bytes

Versions: 28

Compression:

Stored size: 737 Bytes

Contents

require File.expand_path('../test_helper', File.dirname(__FILE__))

class ViewMethodsTest < ActiveSupport::TestCase
  
  include ComfortableMexicanSofa::ViewMethods
  
  def test_cms_snippet_content
    assert_equal 'default_snippet_content', cms_snippet_content('default')
    assert_equal '', cms_snippet_content('not_found')
  end
  
  def test_cms_page_content
    assert_equal 'default_field_text_content', cms_page_content('default_field_text', cms_pages(:default))
    assert_equal '', cms_page_content('default_field_text')
    @cms_page = cms_pages(:default)
    assert_equal 'default_field_text_content', cms_page_content('default_field_text')
    assert_equal '', cms_page_content('not_found')
    @cms_page = nil
  end
  
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
comfortable_mexican_sofa-1.0.51 test/unit/view_methods_test.rb
comfortable_mexican_sofa-1.0.50 test/unit/view_methods_test.rb
comfortable_mexican_sofa-1.0.49 test/unit/view_methods_test.rb
comfortable_mexican_sofa-1.0.48 test/unit/view_methods_test.rb
comfortable_mexican_sofa-1.0.47 test/unit/view_methods_test.rb
comfortable_mexican_sofa-1.0.46 test/unit/view_methods_test.rb
comfortable_mexican_sofa-1.0.45 test/unit/view_methods_test.rb
comfortable_mexican_sofa-1.0.44 test/unit/view_methods_test.rb
comfortable_mexican_sofa-1.0.43 test/unit/view_methods_test.rb
comfortable_mexican_sofa-1.0.42 test/unit/view_methods_test.rb
comfortable_mexican_sofa-1.0.41 test/unit/view_methods_test.rb
comfortable_mexican_sofa-1.0.40 test/unit/view_methods_test.rb
comfortable_mexican_sofa-1.0.39 test/unit/view_methods_test.rb
comfortable_mexican_sofa-1.0.38 test/unit/view_methods_test.rb
comfortable_mexican_sofa-1.0.37 test/unit/view_methods_test.rb
comfortable_mexican_sofa-1.0.36 test/unit/view_methods_test.rb
comfortable_mexican_sofa-1.0.35 test/unit/view_methods_test.rb
comfortable_mexican_sofa-1.0.34 test/unit/view_methods_test.rb
comfortable_mexican_sofa-1.0.33 test/unit/view_methods_test.rb
comfortable_mexican_sofa-1.0.32 test/unit/view_methods_test.rb