Sha256: 5ab46268a35f17e7a9ba341f1fd3d7902421e8c6c6747670a1f07279ae17dc36

Contents?: true

Size: 524 Bytes

Versions: 9

Compression:

Stored size: 524 Bytes

Contents

require 'test_helper'
require "generators/push_type/taxonomy/taxonomy_generator"

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

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

    it { assert_file 'app/models/category.rb', %r{class Category < PushType::Taxonomy} }
    it { assert_file 'app/views/taxonomies/category.html.erb', %r{<h1><%= @taxonomy.title %></h1>} }
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
push_type_core-0.7.0 test/lib/generators/push_type/taxonomy_generator_test.rb
push_type_core-0.7.0.beta.1 test/lib/generators/push_type/taxonomy_generator_test.rb
push_type_core-0.6.0 test/lib/generators/push_type/taxonomy_generator_test.rb
push_type_core-0.6.0.beta.4 test/lib/generators/push_type/taxonomy_generator_test.rb
push_type_core-0.6.0.beta.3 test/lib/generators/push_type/taxonomy_generator_test.rb
push_type_core-0.6.0.beta.2 test/lib/generators/push_type/taxonomy_generator_test.rb
push_type_core-0.6.0.beta.1 test/lib/generators/push_type/taxonomy_generator_test.rb
push_type_core-0.5.3 test/lib/generators/push_type/taxonomy_generator_test.rb
push_type_core-0.5.2 test/lib/generators/push_type/taxonomy_generator_test.rb