Sha256: 788183200d2f0f0012c611e41b67d36bfc2d5d2a9518472616f62c2f8b0a6ba1

Contents?: true

Size: 480 Bytes

Versions: 1

Compression:

Stored size: 480 Bytes

Contents

require 'test_helper'

class Jquery::Generators::InstallGeneratorTest < Rails::Generators::TestCase
  destination File.join(Rails.root)
  tests Jquery::Generators::InstallGenerator
  arguments []

  setup :prepare_destination

  test 'jquery is installed' do
    run_generator

    %w(jquery.js rails.js).each { |js| assert_file "public/javascripts/#{js}" }
    %w(controls.js dragdrop.js effects.js prototype.js).each { |js| assert_no_file "public/javascripts/#{js}" }
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rails3-generators-0.11.0 test/lib/generators/jquery/install_generator_test.rb