Sha256: f7a191fb4c036bb43976c3e390fc64cb3c72561e163cc1d8b42b2981ea37608b
Contents?: true
Size: 819 Bytes
Versions: 2
Compression:
Stored size: 819 Bytes
Contents
require 'spec_helper' describe 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
picky-2.7.0 | spec/lib/indexed/wrappers/bundle/calculation_spec.rb |
picky-2.6.0 | spec/lib/indexed/wrappers/bundle/calculation_spec.rb |