Sha256: 912c6e8f1fe52e3ed5f2d66f1f10857edff4e3c0fd9be8348d7e4be1e12ddbf3

Contents?: true

Size: 421 Bytes

Versions: 9

Compression:

Stored size: 421 Bytes

Contents

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

Version data entries

9 entries across 9 versions & 3 rubygems

Version Path
mongo_mapper-0.12.0 test/test_active_model_lint.rb
lookout-mongo_mapper-0.11.3 test/test_active_model_lint.rb
mongo_mapper-0.11.2 test/test_active_model_lint.rb
jamieorc-mongo_mapper-0.11.1.1 test/test_active_model_lint.rb
mongo_mapper-0.11.1 test/test_active_model_lint.rb
mongo_mapper-0.11.0 test/test_active_model_lint.rb
mongo_mapper-0.10.1 test/test_active_model_lint.rb
mongo_mapper-0.10.0 test/test_active_model_lint.rb
mongo_mapper-0.9.2 test/test_active_model_lint.rb