# coding: utf-8 require_relative '../spreadsheet' # Sheet1 describe 'Sheet1' do def sheet1; $spreadsheet ||= Spreadsheet.new; $spreadsheet.sheet1; end it 'cell d3 should equal 3.0' do sheet1.d3.should be_within(0.30000000000000004).of(3.0) end it 'cell d4 should equal 7.0' do sheet1.d4.should be_within(0.7000000000000001).of(7.0) end it 'cell d5 should equal 11.0' do sheet1.d5.should be_within(1.1).of(11.0) end end