Sha256: 0cb07493a77728975acfb0889b403d58678edf6c4df35a3d2fd4d4409a95a88e
Contents?: true
Size: 496 Bytes
Versions: 9
Compression:
Stored size: 496 Bytes
Contents
require "test_helper" require "generators/push_type/taxonomy/taxonomy_generator" module PushType describe TaxonomyGenerator do 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