Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

18 lines (15 sloc) 0.421 kb
require 'test_helper'
# For testing against edge rails also.
# $:.unshift '/Users/jnunemaker/dev/ruby/rails/activemodel/lib'
require 'active_model'
require 'models'
class ActiveModelLintTest < ActiveModel::TestCase
include ::ActiveModel::Lint::Tests
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
Jump to Line
Something went wrong with that request. Please try again.