Sha256: 1aa18eb7da0c41f55d93fe98609f0ec9e8c6f6af21a8691aba3e76ffc9f688ba

Contents?: true

Size: 686 Bytes

Versions: 10

Compression:

Stored size: 686 Bytes

Contents

require File.join(File.dirname(__FILE__), 'helper')

class TestIndex < Test::Unit::TestCase
  context 'DM::A::Sphinx::Index instance' do
    should 'respond to delta?'
  end

  context 'DM::A::Sphinx::Resource class' do
    setup do
      class ::Resource
        include DataMapper::SphinxResource
      end
    end

    context '#index method' do
      should 'append an index' do
        assert_nothing_raised do
          Resource.class_eval do
            index :name
          end
        end
      end
    end

    context '#sphinx_indexes method' do
      should 'return DM::A::Sphinx::Index objects'
      should 'return delta indexes at the end of the list'
    end
  end
end

Version data entries

10 entries across 10 versions & 3 rubygems

Version Path
bdimcheff-dm-sphinx-adapter-0.8.0 test/test_index.rb
shanna-dm-sphinx-adapter-0.6.1 test/test_index.rb
shanna-dm-sphinx-adapter-0.6.2 test/test_index.rb
shanna-dm-sphinx-adapter-0.6 test/test_index.rb
shanna-dm-sphinx-adapter-0.7.1 test/test_index.rb
shanna-dm-sphinx-adapter-0.7 test/test_index.rb
shanna-dm-sphinx-adapter-0.8.0 test/test_index.rb
dm-sphinx-adapter-0.7.1 test/test_index.rb
dm-sphinx-adapter-0.7 test/test_index.rb
dm-sphinx-adapter-0.6 test/test_index.rb