require "test_helper" require "generators/mint_report/mint_report_generator" class MintReportGeneratorTest < Rails::Generators::TestCase tests MintReportGenerator destination File.expand_path("../tmp", File.dirname(__FILE__)) setup :prepare_destination test "generate Report" do run_generator %w(foo_report) assert_file 'app/models/reports/foo_report.rb' end end