test/generator_test.rb in abilities-0.0.4 vs test/generator_test.rb in abilities-0.1.0
- old
+ new
@@ -2,17 +2,17 @@
require 'rails/generators'
require 'generators/abilities/install_generator'
class GeneratorsTest < Rails::Generators::TestCase
tests Abilities::InstallGenerator
- destination File.expand_path('../tmp', File.dirname(__FILE__))
+ destination Rails.root.join('tmp')
teardown do
FileUtils.rm_rf self.destination_root
end
test 'initializer generator' do
run_generator
- assert_file 'config/initializers/abilities.rb'
+ assert_file 'config/abilities.rb'
end
end