Sha256: 69752fe91729a26183e76de5b19008ffac672a640341e98b2842239805484fed

Contents?: true

Size: 723 Bytes

Versions: 5

Compression:

Stored size: 723 Bytes

Contents

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

class ViewMethodsTest < ActiveSupport::TestCase
  
  include LucyCMS::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

5 entries across 5 versions & 1 rubygems

Version Path
lucy_cms-0.0.5 test/unit/view_methods_test.rb
lucy_cms-0.0.4 test/unit/view_methods_test.rb
lucy_cms-0.0.3 test/unit/view_methods_test.rb
lucy_cms-0.0.2 test/unit/view_methods_test.rb
lucy_cms-0.0.1 test/unit/view_methods_test.rb