Sha256: 1fdad50d4f953b7e041f70032203a61a570513bcbecbe035d7100ad5fee268aa

Contents?: true

Size: 626 Bytes

Versions: 14

Compression:

Stored size: 626 Bytes

Contents

require 'test_helper'
require 'generators/autocomplete_generator'

class AutocompleteGeneratorTest < Test::Unit::TestCase
  def setup
    @destination = File.join('tmp', 'test_app')
    @source = AutocompleteGenerator.source_root

    AutocompleteGenerator.start('', :destination_root => @destination)
  end

  def test_install
    assert File.exists?(
      File.join(@destination, 'public', 'javascripts', 'autocomplete-rails.js')
    )

    assert_equal(
      File.read(File.join(@source, 'autocomplete-rails.js')),
      File.read(File.join(@destination, 'public', 'javascripts', 'autocomplete-rails.js'))
    )
  end
end

Version data entries

14 entries across 14 versions & 2 rubygems

Version Path
rails3-jquery-autocomplete-moc-0.3.3 test/autocomplete_generator_test.rb
rails3-jquery-autocomplete-0.3.4 test/autocomplete_generator_test.rb
rails3-jquery-autocomplete-moc-0.3.1 test/autocomplete_generator_test.rb
rails3-jquery-autocomplete-moc-0.3.0 test/autocomplete_generator_test.rb
rails3-jquery-autocomplete-0.3.3 test/autocomplete_generator_test.rb
rails3-jquery-autocomplete-0.3.2 test/autocomplete_generator_test.rb
rails3-jquery-autocomplete-0.3.1 test/autocomplete_generator_test.rb
rails3-jquery-autocomplete-0.3.0 test/autocomplete_generator_test.rb
rails3-jquery-autocomplete-moc-0.1.0 test/autocomplete_generator_test.rb
rails3-jquery-autocomplete-0.2.3 test/autocomplete_generator_test.rb
rails3-jquery-autocomplete-0.2.2 test/autocomplete_generator_test.rb
rails3-jquery-autocomplete-0.2.1 test/autocomplete_generator_test.rb
rails3-jquery-autocomplete-0.2.0 test/autocomplete_generator_test.rb
rails3-jquery-autocomplete-0.1.3 test/autocomplete_generator_test.rb