Skip to content

Commit

Permalink
Test case for proper use of ActiveModel::Naming
Browse files Browse the repository at this point in the history
  • Loading branch information
bkeepers committed Sep 2, 2011
1 parent d5c52d8 commit 5090d69
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/test_active_model_lint.rb
Expand Up @@ -10,4 +10,9 @@ class ActiveModelLintTest < ActiveModel::TestCase
def setup
@model = Post.new
end

def test_naming
Post.model_name.plural.should == 'posts'
Post.new.respond_to?(:model_name).should be_false
end
end

0 comments on commit 5090d69

Please sign in to comment.