Sha256: 246d551634d1431ad188f7080f240b7fc3805d2cd5baa90357180582c14091e5

Contents?: true

Size: 402 Bytes

Versions: 7

Compression:

Stored size: 402 Bytes

Contents

require 'spec_helper'

describe RankedModel::Ranker, 'initialized' do

  subject {
    RankedModel::Ranker.new \
      :overview,
      :column    => :a_sorting_column,
      :scope     => :a_scope,
      :with_same => :a_column
  }

  its(:name) { should == :overview }
  its(:column) { should == :a_sorting_column }
  its(:scope) { should == :a_scope }
  its(:with_same) { should == :a_column }

end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
ranked-model-0.1.1 spec/ranked-model/ranker_spec.rb
ranked-model-0.1.0 spec/ranked-model/ranker_spec.rb
ranked-model-0.0.5 spec/ranked-model/ranker_spec.rb
ranked-model-0.0.4 spec/ranked-model/ranker_spec.rb
ranked-model-0.0.3 spec/ranked-model/ranker_spec.rb
ranked-model-0.0.2 spec/ranked-model/ranker_spec.rb
ranked-model-0.0.1 spec/ranked-model/ranker_spec.rb