Sha256: 8be668ced344442dfe6742e0e96307f375eb7baa2f91f129ef429ddc3b2657c7

Contents?: true

Size: 415 Bytes

Versions: 1

Compression:

Stored size: 415 Bytes

Contents

# coding: utf-8
require_relative '../spreadsheet'
# Outputs
describe 'Sheet1' do
  def sheet1; $spreadsheet ||= Spreadsheet.new; $spreadsheet.sheet1; end

  it 'cell b1 should equal 121.0' do
    sheet1.b1.should be_close(121.0,12.1)
  end

  it 'cell b2 should equal 99.0' do
    sheet1.b2.should be_close(99.0,9.9)
  end

  it 'cell b3 should equal "In result"' do
    sheet1.b3.should == "In result"
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rubyfromexcel-0.0.4 examples/ruby-versions/pruning-ruby/specs/sheet1_rspec.rb