Sha256: 6bc1ad20918b5557b8e55288a8a93ef942c349df569f74db874bf4c41363f1da

Contents?: true

Size: 539 Bytes

Versions: 2

Compression:

Stored size: 539 Bytes

Contents

require 'spec_helper'

describe Indexed::Wrappers::Bundle::Wrapper do
  
  before(:each) do
    @bundle      = stub :bundle
    
    @calculation = described_class.new @bundle
  end
  
  describe 'ids' do
    it 'calls bundle#ids correctly' do
      @bundle.should_receive(:ids).once.with :some_sym
      
      @calculation.ids :some_sym
    end
  end
  
  describe 'weight' do
    it 'calls bundle#ids correctly' do
      @bundle.should_receive(:weight).once.with :some_sym
      
      @calculation.weight :some_sym
    end
  end
  
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
picky-2.7.0 spec/lib/indexed/wrappers/bundle/wrapper_spec.rb
picky-2.6.0 spec/lib/indexed/wrappers/bundle/wrapper_spec.rb