Sha256: 34ef52b1c66fb5dc17076789d19699e045eaef87fefbaa8986cdbe8c23086a6b

Contents?: true

Size: 644 Bytes

Versions: 21

Compression:

Stored size: 644 Bytes

Contents

require "test_helper"
require "generators/active_representer/install_generator"

module ActiveRepresenter
  class InstallGeneratorTest < ::Rails::Generators::TestCase
    tests ActiveRepresenter::Generators::InstallGenerator
    destination File.expand_path('../../tmp', __FILE__)
    setup :prepare_destination
    teardown { rm_rf(destination_root) }

    test "generates application representer" do
      run_generator
      assert_file "app/representers/application_representer.rb"
    end

    test "generates directory for representers concerns" do
      run_generator
      assert_directory "app/representers/concerns"
    end
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
lightrails-0.2.7 test/active_representer/install_generator_test.rb
lightrails-0.2.6 test/active_representer/install_generator_test.rb
lightrails-0.2.5 test/active_representer/install_generator_test.rb
lightrails-0.2.4 test/active_representer/install_generator_test.rb
lightrails-0.2.3 test/active_representer/install_generator_test.rb
lightrails-0.2.2 test/active_representer/install_generator_test.rb
lightrails-0.2.1 test/active_representer/install_generator_test.rb
lightrails-0.2.0 test/active_representer/install_generator_test.rb
lightrails-0.1.0.1 test/active_representer/install_generator_test.rb
lightrails-0.1.0 test/active_representer/install_generator_test.rb
lightrails-0.0.17.3 test/active_representer/install_generator_test.rb
lightrails-0.0.17.2 test/active_representer/install_generator_test.rb
lightrails-0.0.17.1 test/active_representer/install_generator_test.rb
lightrails-0.0.17 test/active_representer/install_generator_test.rb
lightrails-0.0.16 test/active_representer/install_generator_test.rb
lightrails-0.0.15 test/active_representer/install_generator_test.rb
lightrails-0.0.14 test/active_representer/install_generator_test.rb
lightrails-0.0.13 test/active_representer/install_generator_test.rb
lightrails-0.0.12 test/active_representer/install_generator_test.rb
lightrails-0.0.11 test/active_representer/install_generator_test.rb