Sha256: c355445a2c7cc15ed9cb2f33394bb716b8726e6452803fb67c727240eedeacd6
Contents?: true
Size: 661 Bytes
Versions: 1
Compression:
Stored size: 661 Bytes
Contents
require "test_helper" class ModelsGeneratorTest < Rails::Generators::TestCase tests Ckeditor::Generators::ModelsGenerator destination File.expand_path("../../tmp", __FILE__) setup :prepare_destination test "models and migration for active_record orm" do run_generator %w(--orm=active_record) assert_file "app/models/ckeditor/asset.rb" assert_file "app/models/ckeditor/picture.rb" assert_file "app/models/ckeditor/attachment_file.rb" assert_migration "db/migrate/create_ckeditor_assets.rb" do |migration| assert_class_method :up, migration do |up| assert_match /create_table/, up end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ckeditor-3.6.0.pre | test/generators/models_generator_test.rb |