spec/worksheet_spec.rb in rubyfromexcel-0.0.13 vs spec/worksheet_spec.rb in rubyfromexcel-0.0.16
- old
+ new
@@ -9,11 +9,11 @@
simple_worksheet_ruby =<<END
# coding: utf-8
# Outputs
class Sheet1 < Spreadsheet
- def a1; @a1 ||= excel_if(a2=="Hello","hello",sheet2.b4); end
+ def a1; @a1 ||= excel_if(excel_comparison(a2,"==","Hello"),"hello",sheet2.b4); end
def a2; "A shared string"; end
end
END
@@ -44,10 +44,10 @@
named_reference_simple_worksheet_ruby =<<END
# coding: utf-8
# Outputs
class Sheet1 < Spreadsheet
- def a1; @a1 ||= excel_if(a2=="Hello","hello",sheet2.b4); end
+ def a1; @a1 ||= excel_if(excel_comparison(a2,"==","Hello"),"hello",sheet2.b4); end
def a2; "A shared string"; end
def reference_one; sheet2.a1; end
end
END
\ No newline at end of file