Sha256: 4a6ab2193bb816f35228650871e60b769205fefeff797c5feb05a7a341968a4f

Contents?: true

Size: 411 Bytes

Versions: 10

Compression:

Stored size: 411 Bytes

Contents

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

module PushType
  describe PresenterGenerator do
    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

10 entries across 10 versions & 1 rubygems

Version Path
push_type_core-0.5.1 test/lib/generators/push_type/presenter_generator_test.rb
push_type_core-0.5.0 test/lib/generators/push_type/presenter_generator_test.rb
push_type_core-0.5.0.alpha.5 test/lib/generators/push_type/presenter_generator_test.rb
push_type_core-0.5.0.alpha.4 test/lib/generators/push_type/presenter_generator_test.rb
push_type_core-0.5.0.alpha.3 test/lib/generators/push_type/presenter_generator_test.rb
push_type_core-0.5.0.alpha.2 test/lib/generators/push_type/presenter_generator_test.rb
push_type_core-0.5.0.alpha.1 test/lib/generators/push_type/presenter_generator_test.rb
push_type_core-0.4.0 test/lib/generators/push_type/presenter_generator_test.rb
push_type_core-0.4.0.beta.3 test/lib/generators/push_type/presenter_generator_test.rb
push_type_core-0.3.3 test/lib/generators/push_type/presenter_generator_test.rb