Sha256: 41bdbd8e66ec495e25c53aeedf6d698a4f48263fc6dcc8d5cdc28a154396680d

Contents?: true

Size: 843 Bytes

Versions: 37

Compression:

Stored size: 843 Bytes

Contents

require 'spec_helper'

describe Indexed::Wrappers::Bundle::Calculation do
  
  before(:each) do
    @bundle       = stub :bundle
    
    @calculation = Indexed::Wrappers::Bundle::Calculation.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

37 entries across 37 versions & 1 rubygems

Version Path
picky-2.1.2 spec/lib/internals/indexed/wrappers/bundle/calculation_spec.rb
picky-2.1.1 spec/lib/internals/indexed/wrappers/bundle/calculation_spec.rb
picky-2.1.0 spec/lib/internals/indexed/wrappers/bundle/calculation_spec.rb
picky-2.0.0 spec/lib/internals/indexed/wrappers/bundle/calculation_spec.rb
picky-2.0.0.pre3 spec/lib/internals/indexed/wrappers/bundle/calculation_spec.rb
picky-2.0.0.pre2 spec/lib/internals/indexed/wrappers/bundle/calculation_spec.rb
picky-2.0.0.pre1 spec/lib/internals/indexed/wrappers/bundle/calculation_spec.rb
picky-1.5.4 spec/lib/internals/indexed/wrappers/bundle/calculation_spec.rb
picky-1.5.3 spec/lib/internals/indexed/wrappers/bundle/calculation_spec.rb
picky-1.5.2 spec/lib/internals/indexed/wrappers/bundle/calculation_spec.rb
picky-1.5.1 spec/lib/internals/indexed/wrappers/bundle/calculation_spec.rb
picky-1.5.0 spec/lib/internals/indexed/wrappers/bundle/calculation_spec.rb
picky-1.4.3 spec/lib/internals/indexed/wrappers/bundle/calculation_spec.rb
picky-1.4.2 spec/lib/internals/indexed/wrappers/bundle/calculation_spec.rb
picky-1.4.1 spec/lib/indexed/wrappers/bundle/calculation_spec.rb
picky-1.4.0 spec/lib/indexed/wrappers/bundle/calculation_spec.rb
picky-1.3.4 spec/lib/indexed/wrappers/bundle/calculation_spec.rb
picky-1.3.3 spec/lib/indexed/wrappers/bundle/calculation_spec.rb
picky-1.3.2 spec/lib/indexed/wrappers/bundle/calculation_spec.rb
picky-1.3.1 spec/lib/indexed/wrappers/bundle/calculation_spec.rb