Sha256: 7a8e3b04baf2e2456952d23a45e81c660bf7e84623dfa17016c1a205c0d52e67

Contents?: true

Size: 665 Bytes

Versions: 10

Compression:

Stored size: 665 Bytes

Contents

require_relative '../test_helper'
require_relative '../../lib/generators/comfy/cms/cms_generator'

class CmsGeneratorTest < Rails::Generators::TestCase
  tests Comfy::Generators::CmsGenerator
  
  def test_generator
    run_generator
    
    assert_migration 'db/migrate/create_cms.rb'
    
    assert_file 'config/initializers/comfortable_mexican_sofa.rb'
    
    assert_file 'config/routes.rb', read_file('cms/routes.rb')
    
    assert_directory 'db/cms_fixtures'
    
    assert_file 'app/assets/javascripts/comfortable_mexican_sofa/admin/application.js'
    
    assert_file 'app/assets/stylesheets/comfortable_mexican_sofa/admin/application.css'
  end

end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
comfortable_mexican_sofa-1.12.2 test/generators/cms_generator_test.rb
comfortable_mexican_sofa-1.12.1 test/generators/cms_generator_test.rb
comfortable_mexican_sofa-1.12.0 test/generators/cms_generator_test.rb
comfortable_mexican_sofa-1.11.2 test/generators/cms_generator_test.rb
comfortable_mexican_sofa-1.11.1 test/generators/cms_generator_test.rb
comfortable_mexican_sofa-1.11.0 test/generators/cms_generator_test.rb
comfortable_mexican_sofa-1.10.3 test/generators/cms_generator_test.rb
comfortable_mexican_sofa-1.10.2 test/generators/cms_generator_test.rb
comfortable_mexican_sofa-1.10.1 test/generators/cms_generator_test.rb
comfortable_mexican_sofa-1.10.0 test/generators/cms_generator_test.rb