Sha256: baa53a24edb2d84cf9ca68e08f14b02324494984a5e9e34c7675d292fa2f3f6c
Contents?: true
Size: 506 Bytes
Versions: 17
Compression:
Stored size: 506 Bytes
Contents
# frozen_string_literal: true module ThinkingSphinx module Panes; end end require 'thinking_sphinx/panes/weight_pane' describe ThinkingSphinx::Panes::WeightPane do let(:pane) { ThinkingSphinx::Panes::WeightPane.new context, object, raw } let(:context) { double('context') } let(:object) { double('object') } let(:raw) { {} } describe '#weight' do it "returns the object's weight by default" do raw["weight()"] = 101 expect(pane.weight).to eq(101) end end end
Version data entries
17 entries across 17 versions & 1 rubygems