spec/unit/generators/install_generator_spec.rb in loaf-0.5.0 vs spec/unit/generators/install_generator_spec.rb in loaf-0.6.0
- old
+ new
@@ -1,8 +1,8 @@
# encoding: utf-8
-require 'spec_helper'
+require 'fileutils'
require 'generators/loaf/install_generator'
RSpec.describe Loaf::Generators::InstallGenerator, type: :generator do
destination File.expand_path("../../../tmp", __FILE__)
@@ -10,7 +10,8 @@
it "copies loaf locales to the host application" do
run_generator
locale = file("config/locales/loaf.en.yml")
expect(locale).to exist
+ FileUtils.rm_rf(File.expand_path("../../../tmp", __FILE__))
end
end