15 lines
443 B
Ruby
15 lines
443 B
Ruby
require File.join(File.dirname(__FILE__),"generators_test_helper.rb")
|
|
|
|
class InstallGeneratorTest < Rails::Generators::TestCase
|
|
tests Devise::Generators::InstallGenerator
|
|
destination File.expand_path("../tmp", File.dirname(__FILE__))
|
|
setup :prepare_destination
|
|
|
|
test "Assert all files are properly created" do
|
|
run_generator
|
|
assert_file "config/initializers/devise.rb"
|
|
assert_file "config/locales/devise.en.yml"
|
|
end
|
|
|
|
end
|