Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Revert "extract validation matchers to minitest-activemodel"

This was a test. Revert and create a new branch.

This reverts commit 5202ae7.
  • Loading branch information...
commit 08c5b3f7e06e82adf4ad06be6b438c172d3bc381 1 parent 5202ae7
@frodsan authored
Showing with 7 additions and 5 deletions.
  1. +0 −2  Gemfile
  2. +7 −2 lib/mongoid-minitest.rb
  3. +0 −1  mongoid-minitest.gemspec
View
2  Gemfile
@@ -1,5 +1,3 @@
source 'https://rubygems.org'
gemspec
-
-gem 'minitest-activemodel', github: 'frodsan/minitest-activemodel'
View
9 lib/mongoid-minitest.rb
@@ -1,13 +1,19 @@
gem 'minitest'
-require 'minitest-activemodel'
+require 'minitest/matchers'
require 'matchers/matcher'
require 'matchers/document/document'
require 'matchers/document/have_field'
require 'matchers/document/be_stored_in'
require 'matchers/document/have_index'
require 'matchers/validations/validations'
+require 'matchers/validations/presence'
+require 'matchers/validations/uniqueness'
+require 'matchers/validations/length'
+require 'matchers/validations/format'
require 'matchers/validations/inclusion'
require 'matchers/validations/exclusion'
+require 'matchers/validations/confirmation'
+require 'matchers/validations/acceptance'
require 'matchers/validations/associated'
require 'matchers/associations/associations'
@@ -16,6 +22,5 @@ module Matchers
include Document
include Validations
include Associations
- include MiniTest::Matchers::ActiveModel
end
end
View
1  mongoid-minitest.gemspec
@@ -23,6 +23,5 @@ Gem::Specification.new do |gem|
gem.add_dependency 'minitest', '~> 4.1'
gem.add_dependency 'minitest-matchers', '~> 1.2'
gem.add_dependency 'mongoid' , '>= 3'
- gem.add_dependency 'minitest-activemodel'
gem.add_development_dependency 'rake'
end
Please sign in to comment.
Something went wrong with that request. Please try again.