Sha256: 9e0ea6371f0421dccd0d1a6d9ed9adc55ff5ce842ee8788a6ea15b103351cda9

Contents?: true

Size: 525 Bytes

Versions: 62

Compression:

Stored size: 525 Bytes

Contents

require 'test_helper'
require 'generators/workarea/override/override_generator'

module Workarea
  class OverrideGeneratorTest < GeneratorTest
    tests Workarea::OverrideGenerator
    destination Dir.mktmpdir
    setup :prepare_destination

    def test_copying_files
      run_generator %w(views workarea/admin/catalog_products/index.html.haml)
      assert_file 'app/views/workarea/admin/catalog_products/index.html.haml'
      assert_file 'app/views/workarea/admin/catalog_products/index.json.jbuilder'
    end
  end
end

Version data entries

62 entries across 62 versions & 1 rubygems

Version Path
workarea-core-3.5.27 test/generators/workarea/override_generator_test.rb
workarea-core-3.5.26 test/generators/workarea/override_generator_test.rb
workarea-core-3.4.45 test/generators/workarea/override_generator_test.rb
workarea-core-3.5.25 test/generators/workarea/override_generator_test.rb
workarea-core-3.5.23 test/generators/workarea/override_generator_test.rb
workarea-core-3.4.44 test/generators/workarea/override_generator_test.rb
workarea-core-3.5.22 test/generators/workarea/override_generator_test.rb
workarea-core-3.4.43 test/generators/workarea/override_generator_test.rb
workarea-core-3.5.21 test/generators/workarea/override_generator_test.rb
workarea-core-3.4.42 test/generators/workarea/override_generator_test.rb
workarea-core-3.5.20 test/generators/workarea/override_generator_test.rb
workarea-core-3.4.41 test/generators/workarea/override_generator_test.rb
workarea-core-3.5.19 test/generators/workarea/override_generator_test.rb
workarea-core-3.4.40 test/generators/workarea/override_generator_test.rb
workarea-core-3.5.18 test/generators/workarea/override_generator_test.rb
workarea-core-3.4.39 test/generators/workarea/override_generator_test.rb
workarea-core-3.5.17 test/generators/workarea/override_generator_test.rb
workarea-core-3.4.38 test/generators/workarea/override_generator_test.rb
workarea-core-3.5.16 test/generators/workarea/override_generator_test.rb
workarea-core-3.4.37 test/generators/workarea/override_generator_test.rb