spec/lib/indexed/wrappers/bundle/calculation_spec.rb in picky-3.2.0 vs spec/lib/indexed/wrappers/bundle/calculation_spec.rb in picky-3.3.0
- old
+ new
@@ -1,36 +1,36 @@
require 'spec_helper'
-describe Picky::Indexed::Wrappers::Bundle::Calculation do
-
+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
\ No newline at end of file