Sha256: 3c54aba9823ef6cfe127c2e7d92640449a4f1de7fa3f2c7ff102dad19911dda6

Contents?: true

Size: 816 Bytes

Versions: 22

Compression:

Stored size: 816 Bytes

Contents

require 'spec_helper'

describe Picky::Indexed::Wrappers::Bundle::Calculation 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 :'0.0'
      
      @calculation.ids :some_sym
    end
    it 'calls bundle#ids correctly' do
      @bundle.should_receive(:ids).once.with :'6.28'
      
      @calculation.ids :'6.28'
    end
  end
  
  describe 'weight' do
    it 'calls bundle#ids correctly' do
      @bundle.should_receive(:weight).once.with :'0.0'
      
      @calculation.weight :some_sym
    end
    it 'calls bundle#ids correctly' do
      @bundle.should_receive(:weight).once.with :'6.28'
      
      @calculation.weight :'6.28'
    end
  end
  
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
picky-3.2.0 spec/lib/indexed/wrappers/bundle/calculation_spec.rb
picky-3.1.13 spec/lib/indexed/wrappers/bundle/calculation_spec.rb
picky-3.1.12 spec/lib/indexed/wrappers/bundle/calculation_spec.rb
picky-3.1.11 spec/lib/indexed/wrappers/bundle/calculation_spec.rb
picky-3.1.10 spec/lib/indexed/wrappers/bundle/calculation_spec.rb
picky-3.1.9 spec/lib/indexed/wrappers/bundle/calculation_spec.rb
picky-3.1.8 spec/lib/indexed/wrappers/bundle/calculation_spec.rb
picky-3.1.7 spec/lib/indexed/wrappers/bundle/calculation_spec.rb
picky-3.1.6 spec/lib/indexed/wrappers/bundle/calculation_spec.rb
picky-3.1.5 spec/lib/indexed/wrappers/bundle/calculation_spec.rb
picky-3.1.4 spec/lib/indexed/wrappers/bundle/calculation_spec.rb
picky-3.1.3 spec/lib/indexed/wrappers/bundle/calculation_spec.rb
picky-3.1.2 spec/lib/indexed/wrappers/bundle/calculation_spec.rb
picky-3.1.1 spec/lib/indexed/wrappers/bundle/calculation_spec.rb
picky-3.1.0 spec/lib/indexed/wrappers/bundle/calculation_spec.rb
picky-3.0.1 spec/lib/indexed/wrappers/bundle/calculation_spec.rb
picky-3.0.0 spec/lib/indexed/wrappers/bundle/calculation_spec.rb
picky-3.0.0.pre5 spec/lib/indexed/wrappers/bundle/calculation_spec.rb
picky-3.0.0.pre4 spec/lib/indexed/wrappers/bundle/calculation_spec.rb
picky-3.0.0.pre3 spec/lib/indexed/wrappers/bundle/calculation_spec.rb