Sha256: 5297a0722eb794ab53c3d67e16021df2f69dd52ec9ed9d82b90e9283cd511b97
Contents?: true
Size: 775 Bytes
Versions: 9
Compression:
Stored size: 775 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_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
9 entries across 9 versions & 1 rubygems