Sha256: 25153547026fb83912d8f78333dc2cca72e923506a772b2dcad3935a015a4067
Contents?: true
Size: 600 Bytes
Versions: 3
Compression:
Stored size: 600 Bytes
Contents
require "#{File.dirname(__FILE__)}/../test_helper" class ConfigureTest < Test::Unit::TestCase CONF = "#{RAILS_ROOT}/config/ultrasphinx/development.conf" def test_configuration_hasnt_changed File.delete CONF if File.exist? CONF Dir.chdir RAILS_ROOT do Ultrasphinx::Configure.run end @offset = 4 @current = open(CONF).readlines[@offset..-1] @canonical = open(CONF + ".canonical").readlines[@offset..-1] @canonical.each_with_index do |line, index| assert_equal line, @current[index], "line #{index}:#{line.inspect} is incorrect" end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ultrasphinx-1.5.3 | test/integration/configure_test.rb |
ultrasphinx-1.6.7 | test/integration/configure_test.rb |
ultrasphinx-1.6 | test/integration/configure_test.rb |