Sha256: 06fee0410254e0cc7c6cd70c1812981c2a2ac158f8e8bd4658168811da39e06a

Contents?: true

Size: 439 Bytes

Versions: 37

Compression:

Stored size: 439 Bytes

Contents

require 'test_helper'
require "generators/push_type/presenter/presenter_generator"

module PushType
  class PresenterGeneratorTest < Rails::Generators::TestCase
    tests PresenterGenerator
    destination Rails.root.join('tmp/generators')

    before :all do
      prepare_destination
      run_generator ['page']
    end

    it { assert_file 'app/presenters/page_presenter.rb', %r{class PagePresenter < PushType::Presenter} }
  end
end

Version data entries

37 entries across 37 versions & 1 rubygems

Version Path
push_type_core-0.12.1 test/lib/generators/push_type/presenter_generator_test.rb
push_type_core-0.12.0 test/lib/generators/push_type/presenter_generator_test.rb
push_type_core-0.12.0.beta.1 test/lib/generators/push_type/presenter_generator_test.rb
push_type_core-0.11.2 test/lib/generators/push_type/presenter_generator_test.rb
push_type_core-0.11.1 test/lib/generators/push_type/presenter_generator_test.rb
push_type_core-0.11.0.beta.2 test/lib/generators/push_type/presenter_generator_test.rb
push_type_core-0.11.0.beta.1 test/lib/generators/push_type/presenter_generator_test.rb
push_type_core-0.10.4 test/lib/generators/push_type/presenter_generator_test.rb
push_type_core-0.10.3 test/lib/generators/push_type/presenter_generator_test.rb
push_type_core-0.10.2 test/lib/generators/push_type/presenter_generator_test.rb
push_type_core-0.10.1 test/lib/generators/push_type/presenter_generator_test.rb
push_type_core-0.10.0 test/lib/generators/push_type/presenter_generator_test.rb
push_type_core-0.10.0.beta.5 test/lib/generators/push_type/presenter_generator_test.rb
push_type_core-0.10.0.beta.3 test/lib/generators/push_type/presenter_generator_test.rb
push_type_core-0.9.5 test/lib/generators/push_type/presenter_generator_test.rb
push_type_core-0.9.3 test/lib/generators/push_type/presenter_generator_test.rb
push_type_core-0.9.2 test/lib/generators/push_type/presenter_generator_test.rb
push_type_core-0.9.1 test/lib/generators/push_type/presenter_generator_test.rb
push_type_core-0.9.0 test/lib/generators/push_type/presenter_generator_test.rb
push_type_core-0.9.0.beta.4 test/lib/generators/push_type/presenter_generator_test.rb