Skip to content

Commit

Permalink
Merge pull request #152 from 90yukke/feature/gem_naming
Browse files Browse the repository at this point in the history
Change gem naming according to issue #150
  • Loading branch information
rodrigopinto committed Jul 23, 2015
2 parents df0ec8a + a05a58b commit d9d0c9f
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 34 deletions.
34 changes: 1 addition & 33 deletions lib/mongoid-rspec.rb
Original file line number Diff line number Diff line change
@@ -1,33 +1 @@
$LOAD_PATH.unshift(File.dirname(__FILE__))

require 'mongoid'
require 'rspec/core'
require 'rspec/expectations'
require 'rspec/mocks'
require "active_model"
require 'matchers/document'
require 'matchers/associations'
require 'matchers/collections'
require 'matchers/indexes'
require 'matchers/allow_mass_assignment'
require 'matchers/accept_nested_attributes'
require 'matchers/validations'
require 'matchers/validations/with_message'
require 'matchers/validations/associated'
require 'matchers/validations/confirmation_of'
require 'matchers/validations/exclusion_of'
require 'matchers/validations/format_of'
require 'matchers/validations/inclusion_of'
require 'matchers/validations/length_of'
require 'matchers/validations/numericality_of'
require 'matchers/validations/presence_of'
require 'matchers/validations/uniqueness_of'
require 'matchers/validations/acceptance_of'
require 'matchers/validations/custom_validation_of'

module Mongoid
module Matchers
include Mongoid::Matchers::Associations
include Mongoid::Matchers::Validations
end
end
require 'mongoid/rspec'
33 changes: 33 additions & 0 deletions lib/mongoid/rspec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
$LOAD_PATH.unshift(File.dirname(__FILE__))

require 'mongoid'
require 'rspec/core'
require 'rspec/expectations'
require 'rspec/mocks'
require "active_model"
require 'matchers/document'
require 'matchers/associations'
require 'matchers/collections'
require 'matchers/indexes'
require 'matchers/allow_mass_assignment'
require 'matchers/accept_nested_attributes'
require 'matchers/validations'
require 'matchers/validations/with_message'
require 'matchers/validations/associated'
require 'matchers/validations/confirmation_of'
require 'matchers/validations/exclusion_of'
require 'matchers/validations/format_of'
require 'matchers/validations/inclusion_of'
require 'matchers/validations/length_of'
require 'matchers/validations/numericality_of'
require 'matchers/validations/presence_of'
require 'matchers/validations/uniqueness_of'
require 'matchers/validations/acceptance_of'
require 'matchers/validations/custom_validation_of'

module Mongoid
module Matchers
include Mongoid::Matchers::Associations
include Mongoid::Matchers::Validations
end
end
File renamed without changes.
3 changes: 2 additions & 1 deletion mongoid-rspec.gemspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# -*- encoding: utf-8 -*-
$:.push File.expand_path("../lib", __FILE__)
require "mongoid-rspec/version"

require 'mongoid/rspec/version'

Gem::Specification.new do |s|
s.name = "mongoid-rspec"
Expand Down

0 comments on commit d9d0c9f

Please sign in to comment.