Sha256: ab900eb2da8032f12a7eb0a25ad937e52ff941842883c620c04800f803467605

Contents?: true

Size: 478 Bytes

Versions: 4

Compression:

Stored size: 478 Bytes

Contents

require_relative '../test_helper'
require_relative '../../lib/generators/comfy/blog/blog_generator'

class CmsGeneratorTest < Rails::Generators::TestCase
  tests Comfy::Generators::BlogGenerator
  
  def test_generator
    run_generator
    
    assert_migration 'db/migrate/create_blog.rb'
    
    assert_file 'config/initializers/comfy_blog.rb'
    
    assert_file 'config/routes.rb', read_file('blog/routes.rb')
    
    assert_directory 'app/views/comfy/blog'
  end
  
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
comfy_blog-1.12.3 test/generators/blog_generator_test.rb
comfy_blog-1.12.2 test/generators/blog_generator_test.rb
comfy_blog-1.12.1 test/generators/blog_generator_test.rb
comfy_blog-1.12.0 test/generators/blog_generator_test.rb