Sha256: 8f939674902d661060e2bddfdad83f33bbe2739dc955cc663002fda110902500
Contents?: true
Size: 579 Bytes
Versions: 2
Compression:
Stored size: 579 Bytes
Contents
require File.dirname(__FILE__) + '/../test_helper' class CmsSnippetTest < ActiveSupport::TestCase def test_fixtures_validity CmsSnippet.all.each do |snippet| assert snippet.valid?, snippet.errors.full_messages end end def test_validations snippet = CmsSnippet.new snippet.save assert snippet.invalid? assert_has_errors_on snippet, :label end def test_method_content assert_equal cms_snippets(:default).content, CmsSnippet.content_for('default') assert_equal '', CmsSnippet.content_for('nonexistent_snippet') end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
comfortable_mexican_sofa-1.0.1 | test/unit/cms_snippet_test.rb |
comfortable_mexican_sofa-1.0.0 | test/unit/cms_snippet_test.rb |