test/helper.rb in osheet-0.9.2 vs test/helper.rb in osheet-0.10.0
- old
+ new
@@ -4,9 +4,18 @@
$LOAD_PATH.unshift(File.expand_path("../..", __FILE__))
require 'osheet'
class Assert::Context
+
+ def xstyle_markup(xworkbook)
+ xworkbook.instance_variable_get("@__xmlss_undies_writer").flush.style_markup
+ end
+
+ def xelement_markup(xworkbook)
+ xworkbook.instance_variable_get("@__xmlss_undies_writer").flush.element_markup
+ end
+
class << self
def should_be_a_workbook_element(klass)
should have_instance_methods :workbook, :styles, :templates