Sha256: 9c17f362c8ce785a14aba6bb6ecec4dd7cc2dc22eba92c93695feefb4fe7147b

Contents?: true

Size: 726 Bytes

Versions: 29

Compression:

Stored size: 726 Bytes

Contents

require 'test_helper'
require 'generators/autocomplete/uncompressed_generator'

module Autocomplete
  class UncompressedGeneratorTest < Test::Unit::TestCase
    def setup
      @destination = File.join('tmp', 'test_app')
      @source      = UncompressedGenerator.source_root
      @filename    = File.join(@destination, 'public', 'javascripts', 'autocomplete-rails.js')

      File.unlink(@filename) if File.exists?(@filename)

      UncompressedGenerator.start([], :destination_root => @destination)
    end

    def test_install
      assert File.exists?(@filename)

      assert_equal(
          File.read(File.join(@source, 'autocomplete-rails-uncompressed.js')),
          File.read(@filename)
      )
    end
  end
end

Version data entries

29 entries across 29 versions & 4 rubygems

Version Path
rails-jquery-autocomplete-1.0.5 test/generators/autocomplete/uncompressed_generator_test.rb
rails-jquery-autocomplete-1.0.4 test/generators/autocomplete/uncompressed_generator_test.rb
rails-autocomplete-2.0.1 test/generators/autocomplete/uncompressed_generator_test.rb
rails-autocomplete-2.0.0 test/generators/autocomplete/uncompressed_generator_test.rb
rails-autocomplete-1.1.0 test/generators/autocomplete/uncompressed_generator_test.rb
rails-jquery-autocomplete-1.0.3 test/generators/autocomplete/uncompressed_generator_test.rb
rails-jquery-autocomplete-1.0.2 test/generators/autocomplete/uncompressed_generator_test.rb
rails-jquery-autocomplete-1.0.1 test/generators/autocomplete/uncompressed_generator_test.rb
rails3-jquery-autocomplete-1.0.15 test/generators/autocomplete/uncompressed_generator_test.rb
rails4-autocomplete-1.1.1 test/generators/autocomplete/uncompressed_generator_test.rb
rails4-autocomplete-1.1.0 test/generators/autocomplete/uncompressed_generator_test.rb
rails3-jquery-autocomplete-1.0.14 test/generators/autocomplete/uncompressed_generator_test.rb
rails3-jquery-autocomplete-1.0.13 test/generators/autocomplete/uncompressed_generator_test.rb
rails3-jquery-autocomplete-1.0.12 test/generators/autocomplete/uncompressed_generator_test.rb
rails4-autocomplete-1.0.7 test/generators/autocomplete/uncompressed_generator_test.rb
rails3-jquery-autocomplete-1.0.11 test/generators/autocomplete/uncompressed_generator_test.rb
rails3-jquery-autocomplete-1.0.10 test/generators/autocomplete/uncompressed_generator_test.rb
rails3-jquery-autocomplete-1.0.9 test/generators/autocomplete/uncompressed_generator_test.rb
rails3-jquery-autocomplete-1.0.8 test/generators/autocomplete/uncompressed_generator_test.rb
rails3-jquery-autocomplete-1.0.7 test/generators/autocomplete/uncompressed_generator_test.rb