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