Sha256: adb412c9a7f5f3ab321a5ceee4d1428efa42ee135c5a3eaf9a9e90867b15d336
Contents?: true
Size: 944 Bytes
Versions: 7
Compression:
Stored size: 944 Bytes
Contents
require 'spec_helper' require 'rails/generators' require 'ammeter/init' # Generators are not automatically loaded by Rails require_relative '../../../lib/generators/uniq_identifier/install_generator' module UniqIdentifier module Generators describe InstallGenerator do # Tell the generator where to put its output (what it thinks of as Rails.root) destination File.expand_path('../../../../tmp', __FILE__) before do prepare_destination end after do FileUtils.rm_rf destination_root end describe 'the generated files' do before do run_generator end describe 'the spec' do let(:file_path) { 'config/initializers/uniq_identifier.rb' } subject { file(file_path) } specify do expect(File.exists?("#{destination_root}/#{file_path}")).to be_truthy end end end end end end
Version data entries
7 entries across 7 versions & 1 rubygems