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

Version Path
rails3-generators-0.15.0 test/lib/generators/mongoid/install_generator_test.rb
rails3-generators-0.14.0 test/lib/generators/mongoid/install_generator_test.rb
rails3-generators-0.13.0 test/lib/generators/mongoid/install_generator_test.rb
rails3-generators-0.12.1 test/lib/generators/mongoid/install_generator_test.rb
rails3-generators-0.12.0 test/lib/generators/mongoid/install_generator_test.rb
rails3-generators-0.11.0 test/lib/generators/mongoid/install_generator_test.rb