Sha256: cf0f0613be5e563bb863981578919f38bd7bf74a455b1462982bcb4a16970c6a

Contents?: true

Size: 592 Bytes

Versions: 8

Compression:

Stored size: 592 Bytes

Contents

require 'spec/spec_helper'

describe ThinkingSphinx::Collection do
  it "should behave like WillPaginate::Collection" do
    instance_methods = ThinkingSphinx::Collection.instance_methods.collect { |m| m.to_s }
    instance_methods.should include("previous_page")
    instance_methods.should include("next_page")
    instance_methods.should include("current_page")
    instance_methods.should include("total_pages")
    instance_methods.should include("total_entries")
    instance_methods.should include("offset")
    
    ThinkingSphinx::Collection.ancestors.should include(Array)
  end
end

Version data entries

8 entries across 8 versions & 4 rubygems

Version Path
dpickett-thinking-sphinx-1.1.23 spec/unit/thinking_sphinx/collection_spec.rb
ebeigarts-thinking-sphinx-1.1.21 spec/unit/thinking_sphinx/collection_spec.rb
ebeigarts-thinking-sphinx-1.1.22 spec/unit/thinking_sphinx/collection_spec.rb
freelancing-god-thinking-sphinx-1.1.21 spec/unit/thinking_sphinx/collection_spec.rb
freelancing-god-thinking-sphinx-1.1.22 spec/unit/thinking_sphinx/collection_spec.rb
freelancing-god-thinking-sphinx-1.1.23 spec/unit/thinking_sphinx/collection_spec.rb
freelancing-god-thinking-sphinx-1.1.24 spec/unit/thinking_sphinx/collection_spec.rb
initforthe-thinking-sphinx-1.1.21 spec/unit/thinking_sphinx/collection_spec.rb