Sha256: 88204025dcd3ae0e3a750d5759d0767b195c8862dbd78eedfbbcd56f7c46cb6e

Contents?: true

Size: 469 Bytes

Versions: 6

Compression:

Stored size: 469 Bytes

Contents

# encoding: utf-8

require 'fileutils'
require 'generators/loaf/install_generator'

RSpec.describe Loaf::Generators::InstallGenerator, type: :generator do
  destination File.expand_path("../../../tmp", __FILE__)

  before { prepare_destination }

  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

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
loaf-0.8.1 spec/unit/generators/install_generator_spec.rb
loaf-0.8.0 spec/unit/generators/install_generator_spec.rb
loaf-0.7.0 spec/unit/generators/install_generator_spec.rb
loaf-0.6.2 spec/unit/generators/install_generator_spec.rb
loaf-0.6.1 spec/unit/generators/install_generator_spec.rb
loaf-0.6.0 spec/unit/generators/install_generator_spec.rb