Sha256: ab8cc550b56c935e8559c5504a64e00a863d055d4bf702c0b047086d4e1547a8
Contents?: true
Size: 766 Bytes
Versions: 1
Compression:
Stored size: 766 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 test 'jquery is installed with jqueyui' do run_generator %w(--ui) %w(jquery.js jqueryui.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.12.1 | test/lib/generators/jquery/install_generator_test.rb |