removing old method
Oleg
committed May 06, 2011
commit 5fbf58abdd2c05ab9d119e30d232525602f53880
Showing 2
changed files with
0 additions
and 10 deletions
app/models/cms/snippet.rb
+0
-5
| @@ | @@ -20,11 +20,6 @@ class Cms::Snippet < ActiveRecord::Base |
| :presence => true, | |
| :uniqueness => { :scope => :site_id }, | |
| :format => { :with => /^\w[a-z0-9_-]*$/i } | |
| - | |
| - | # -- Class Methods -------------------------------------------------------- |
| - | def self.content_for(slug) |
| - | (s = find_by_slug(slug)) ? s.content : '' |
| - | end |
| protected | |
test/unit/models/snippet_test.rb
+0
-5
| @@ | @@ -15,11 +15,6 @@ class CmsSnippetTest < ActiveSupport::TestCase |
| assert_has_errors_on snippet, [:label, :slug] | |
| end | |
| - | def test_method_content |
| - | assert_equal cms_snippets(:default).content, Cms::Snippet.content_for('default') |
| - | assert_equal '', Cms::Snippet.content_for('nonexistent_snippet') |
| - | end |
| - | |
| def test_update_forces_page_content_reload | |
| snippet = cms_snippets(:default) | |
| page = cms_pages(:default) | |