Sha256: 95f9660f9f9df946d010d1d80a6fba2ac9261ad3134d133723a1eec1d736f5cf

Contents?: true

Size: 771 Bytes

Versions: 102

Compression:

Stored size: 771 Bytes

Contents

require 'spec_helper'

describe Picky::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_str'
    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_str'
    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

102 entries across 102 versions & 1 rubygems

Version Path
picky-4.19.4 spec/lib/indexed/wrappers/bundle/calculation_spec.rb
picky-4.19.3 spec/lib/indexed/wrappers/bundle/calculation_spec.rb
picky-4.19.2 spec/lib/indexed/wrappers/bundle/calculation_spec.rb
picky-4.19.1 spec/lib/indexed/wrappers/bundle/calculation_spec.rb
picky-4.19.0 spec/lib/indexed/wrappers/bundle/calculation_spec.rb
picky-4.18.0 spec/lib/indexed/wrappers/bundle/calculation_spec.rb
picky-4.17.1 spec/lib/indexed/wrappers/bundle/calculation_spec.rb
picky-4.17.0 spec/lib/indexed/wrappers/bundle/calculation_spec.rb
picky-4.16.0 spec/lib/indexed/wrappers/bundle/calculation_spec.rb
picky-4.15.1 spec/lib/indexed/wrappers/bundle/calculation_spec.rb
picky-4.15.0 spec/lib/indexed/wrappers/bundle/calculation_spec.rb
picky-4.14.0 spec/lib/indexed/wrappers/bundle/calculation_spec.rb
picky-4.13.1 spec/lib/indexed/wrappers/bundle/calculation_spec.rb
picky-4.13.0 spec/lib/indexed/wrappers/bundle/calculation_spec.rb
picky-4.12.13 spec/lib/indexed/wrappers/bundle/calculation_spec.rb
picky-4.12.12 spec/lib/indexed/wrappers/bundle/calculation_spec.rb
picky-4.12.11 spec/lib/indexed/wrappers/bundle/calculation_spec.rb
picky-4.12.10 spec/lib/indexed/wrappers/bundle/calculation_spec.rb
picky-4.12.8 spec/lib/indexed/wrappers/bundle/calculation_spec.rb
picky-4.12.7 spec/lib/indexed/wrappers/bundle/calculation_spec.rb