Sha256: 4a3bc944bcbe393ecc7ceff4d64b1ec29e935fd55e061ae1d7b5f67a55d539e8

Contents?: true

Size: 436 Bytes

Versions: 2

Compression:

Stored size: 436 Bytes

Contents

require 'spec_helper'

require_relative '../../../lib/generators/aureus/copy/copy_generator'

describe Aureus::Generators::CopyGenerator, type: :generator do
  destination File.expand_path('../../../../tmp/gen', __FILE__)

  before do
    prepare_destination
    run_generator
  end

  it 'copies views and layout' do
    assert_file 'app/views/aureus/resources/index.html.haml'
    assert_file 'app/layouts/aureus.html.haml'
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
aureus-3.0.5 spec/lib/generators/copy_spec.rb
aureus-3.0.4 spec/lib/generators/copy_spec.rb