0
0
Fork 0
rubella/spec/unit/rubella/input/base/each_spec.rb

16 lines
275 B
Ruby
Raw Normal View History

2015-05-01 12:43:01 +02:00
require 'spec_helper'
describe Rubella::Input::Base, '.each' do
it "passes the data through the given block" do
storage = Rubella::Input::Base.new [3, 4, 5]
sum = 0
storage.each do |value|
sum = sum + value
end
expect(sum).to eq(12)
end
end