test/format/custom_test.rb in osheet-0.7.0 vs test/format/custom_test.rb in osheet-0.8.0

- old
+ new

@@ -1,22 +1,22 @@ -require "test/helper" +require "assert" require 'osheet/format/custom' module Osheet::Format - class CustomTest < Test::Unit::TestCase - context "Custom format" do - should "generate a basic style string and key" do - f = Custom.new '@' - assert_equal "@", f.style - assert_equal "custom_@", f.key - end + class CustomTest < Assert::Context + desc "Custom format" - should "generate a more complex style string and key" do - f = Custom.new 'm/d/yy' - assert_equal 'm/d/yy', f.style - assert_equal "custom_m/d/yy", f.key - end + should "generate a basic style string and key" do + f = Custom.new '@' + assert_equal "@", f.style + assert_equal "custom_@", f.key + end + + should "generate a more complex style string and key" do + f = Custom.new 'm/d/yy' + assert_equal 'm/d/yy', f.style + assert_equal "custom_m/d/yy", f.key end end end