test/generator_test.rb in slugs-2.0.1 vs test/generator_test.rb in slugs-4.0.0.0

- old
+ new

@@ -1,18 +1,17 @@ require 'test_helper' require 'rails/generators' -require 'generators/slugs/install_generator' +require 'generators/slugs/install/install_generator' class GeneratorsTest < Rails::Generators::TestCase - - tests Cronjobs::Generators::InstallGenerator destination Rails.root.join('tmp') teardown do FileUtils.rm_rf destination_root end - test 'file generation' do + test 'install' do + self.class.tests Slugs::Generators::InstallGenerator run_generator assert_file 'config/initializers/slugs.rb' end end