Sha256: d081731055179ee42562740e74d95b7807ffceeaa2070b6bba3e68fd88187035

Contents?: true

Size: 703 Bytes

Versions: 8

Compression:

Stored size: 703 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_within(12.100000000000001).of(121.0)
  end

  it 'cell b2 should equal 99.0' do
    sheet1.b2.should be_within(9.9).of(99.0)
  end

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

  it 'cell b6 should equal 99.0' do
    sheet1.b6.should be_within(9.9).of(99.0)
  end

  it 'cell b8 should equal 99.0' do
    sheet1.b8.should be_within(9.9).of(99.0)
  end

  it 'cell b15 should equal 5.0' do
    sheet1.b15.should be_within(0.5).of(5.0)
  end

end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
rubyfromexcel-0.0.23 examples/ruby-versions/pruning-ruby/specs/sheet1_rspec.rb
rubyfromexcel-0.0.22 examples/ruby-versions/pruning-ruby/specs/sheet1_rspec.rb
rubyfromexcel-0.0.21 examples/ruby-versions/pruning-ruby/specs/sheet1_rspec.rb
rubyfromexcel-0.0.20 examples/ruby-versions/pruning-ruby/specs/sheet1_rspec.rb
rubyfromexcel-0.0.19 examples/ruby-versions/pruning-ruby/specs/sheet1_rspec.rb
rubyfromexcel-0.0.18 examples/ruby-versions/pruning-ruby/specs/sheet1_rspec.rb
rubyfromexcel-0.0.17 examples/ruby-versions/pruning-ruby/specs/sheet1_rspec.rb
rubyfromexcel-0.0.16 examples/ruby-versions/pruning-ruby/specs/sheet1_rspec.rb