Sha256: 69e798b0bd13833d4e2fa6b3f3f08f525ea94dd9ef6c75fe685e296e596fc473

Contents?: true

Size: 586 Bytes

Versions: 1

Compression:

Stored size: 586 Bytes

Contents

require "test_helper"

class InstallGeneratorTest < Rails::Generators::TestCase
  tests Ckeditor::Generators::InstallGenerator
  destination File.expand_path("../../tmp", __FILE__)
  setup :prepare_destination

  test "Assert all files are properly created" do
    run_generator
    
    assert_file "config/initializers/ckeditor.rb"
    assert_file "tmp/ckeditor_#{Ckeditor::Version::EDITOR}.tar.gz"
    
    ["rails.js", "jquery.js", "fileuploader.js", "jquery.tmpl.js"].each do |file|
      assert_file "public/javascripts/ckeditor/filebrowser/javascripts/#{file}"
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ckeditor-3.6.0.pre test/generators/install_generator_test.rb