require 'test_helper' require 'generators/acts_as_audited/install_generator' class InstallGeneratorTest < Rails::Generators::TestCase destination File.expand_path('../../tmp', __FILE__) setup :prepare_destination tests ActsAsAudited::Generators::InstallGenerator test "should generate a migration" do run_generator %w(install) assert_migration "db/migrate/install_acts_as_audited.rb" do |content| assert_match /class InstallActsAsAudited/, content end end end