Sha256: b8b87daa164f3bb3ff5533854255979a0b397d5ae6e85d7e9490d7517a65d2ca
Contents?: true
Size: 450 Bytes
Versions: 5
Compression:
Stored size: 450 Bytes
Contents
require 'spec_helper' describe Chewy::Type do describe '.scopes' do before do stub_index(:places) do def self.by_id end define_type :city do def self.by_rating end def self.by_name end end end end specify { expect(described_class.scopes).to eq([]) } specify { expect(PlacesIndex::City.scopes).to match_array([:by_rating, :by_name]) } end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
chewy-0.8.3 | spec/chewy/type_spec.rb |
chewy-0.8.2 | spec/chewy/type_spec.rb |
chewy-0.8.1 | spec/chewy/type_spec.rb |
chewy-0.8.0 | spec/chewy/type_spec.rb |
chewy-0.7.0 | spec/chewy/type_spec.rb |