Sha256: 3689aaf1dfc6b56b805c298fc6a81cba8a07658b2147c621233bd3d3af8690cf
Contents?: true
Size: 478 Bytes
Versions: 6
Compression:
Stored size: 478 Bytes
Contents
require 'test_helper' require 'lib/generators/mongoid/testing_helper' class Mongoid::Generators::InstallGeneratorTest < Rails::Generators::TestCase destination File.join(Rails.root) tests Mongoid::Generators::InstallGenerator setup :prepare_destination setup :copy_routes test "invoke" do run_generator ['test-db'] assert_file "config/initializers/mongoid.rb" do |initializer| assert_match /Mongo::Connection.new(\S+)/, initializer end end end
Version data entries
6 entries across 6 versions & 1 rubygems