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.9.0.beta.3 test/lib/generators/push_type/presenter_generator_test.rb
push_type_core-0.9.0.beta.2 test/lib/generators/push_type/presenter_generator_test.rb
push_type_core-0.8.2 test/lib/generators/push_type/presenter_generator_test.rb
push_type_core-0.8.1 test/lib/generators/push_type/presenter_generator_test.rb
push_type_core-0.8.0 test/lib/generators/push_type/presenter_generator_test.rb
push_type_core-0.8.0.beta.3 test/lib/generators/push_type/presenter_generator_test.rb
push_type_core-0.8.0.beta.2 test/lib/generators/push_type/presenter_generator_test.rb
push_type_core-0.8.0.beta.1 test/lib/generators/push_type/presenter_generator_test.rb
push_type_core-0.7.0 test/lib/generators/push_type/presenter_generator_test.rb
push_type_core-0.7.0.beta.1 test/lib/generators/push_type/presenter_generator_test.rb
push_type_core-0.6.0 test/lib/generators/push_type/presenter_generator_test.rb
push_type_core-0.6.0.beta.4 test/lib/generators/push_type/presenter_generator_test.rb
push_type_core-0.6.0.beta.3 test/lib/generators/push_type/presenter_generator_test.rb
push_type_core-0.6.0.beta.2 test/lib/generators/push_type/presenter_generator_test.rb
push_type_core-0.6.0.beta.1 test/lib/generators/push_type/presenter_generator_test.rb
push_type_core-0.5.3 test/lib/generators/push_type/presenter_generator_test.rb
push_type_core-0.5.2 test/lib/generators/push_type/presenter_generator_test.rb