Sha256: 1d1047a0a95b85d6d03812831fff11a721fa96986623071d17f904aaaed768ba

Contents?: true

Size: 664 Bytes

Versions: 33

Compression:

Stored size: 664 Bytes

Contents

require 'spec/spec_helper'

describe ThinkingSphinx::Collection do
  it "should behave like WillPaginate::Collection" do
    ThinkingSphinx::Collection.instance_methods.should include("previous_page")
    ThinkingSphinx::Collection.instance_methods.should include("next_page")
    ThinkingSphinx::Collection.instance_methods.should include("current_page")
    ThinkingSphinx::Collection.instance_methods.should include("total_pages")
    ThinkingSphinx::Collection.instance_methods.should include("total_entries")
    ThinkingSphinx::Collection.instance_methods.should include("offset")
    
    ThinkingSphinx::Collection.ancestors.should include(Array)
  end
end

Version data entries

33 entries across 33 versions & 6 rubygems

Version Path
DrMark-thinking-sphinx-1.1.14 spec/unit/thinking_sphinx/collection_spec.rb
DrMark-thinking-sphinx-1.1.15 spec/unit/thinking_sphinx/collection_spec.rb
DrMark-thinking-sphinx-1.1.6 spec/unit/thinking_sphinx/collection_spec.rb
dpickett-thinking-sphinx-1.1.12 spec/unit/thinking_sphinx/collection_spec.rb
dpickett-thinking-sphinx-1.1.4 spec/unit/thinking_sphinx/collection_spec.rb
freelancing-god-thinking-sphinx-0.9.13 spec/unit/thinking_sphinx/collection_spec.rb
freelancing-god-thinking-sphinx-1.1.0 spec/unit/thinking_sphinx/collection_spec.rb
freelancing-god-thinking-sphinx-1.1.1 spec/unit/thinking_sphinx/collection_spec.rb
freelancing-god-thinking-sphinx-1.1.10 spec/unit/thinking_sphinx/collection_spec.rb
freelancing-god-thinking-sphinx-1.1.11 spec/unit/thinking_sphinx/collection_spec.rb
freelancing-god-thinking-sphinx-1.1.12 spec/unit/thinking_sphinx/collection_spec.rb
freelancing-god-thinking-sphinx-1.1.14 spec/unit/thinking_sphinx/collection_spec.rb
freelancing-god-thinking-sphinx-1.1.15 spec/unit/thinking_sphinx/collection_spec.rb
freelancing-god-thinking-sphinx-1.1.16 spec/unit/thinking_sphinx/collection_spec.rb
freelancing-god-thinking-sphinx-1.1.17 spec/unit/thinking_sphinx/collection_spec.rb
freelancing-god-thinking-sphinx-1.1.18 spec/unit/thinking_sphinx/collection_spec.rb
freelancing-god-thinking-sphinx-1.1.19 spec/unit/thinking_sphinx/collection_spec.rb
freelancing-god-thinking-sphinx-1.1.2 spec/unit/thinking_sphinx/collection_spec.rb
freelancing-god-thinking-sphinx-1.1.20 spec/unit/thinking_sphinx/collection_spec.rb
freelancing-god-thinking-sphinx-1.1.3 spec/unit/thinking_sphinx/collection_spec.rb