test/xmlss/style_cache_test.rb in osheet-xmlss-1.0.0.rc.1 vs test/xmlss/style_cache_test.rb in osheet-xmlss-1.0.0.rc.2
- old
+ new
@@ -26,14 +26,14 @@
should "have no cached styles by default" do
assert_empty subject
end
should "key based off class value and format key" do
- assert_equal '', subject.send(:key, '', nil)
- assert_equal '.awesome', subject.send(:key, 'awesome', nil)
- assert_equal '.awesome.thing', subject.send(:key, 'awesome thing', nil)
- assert_equal '.awesome..something', subject.send(:key, 'awesome', 'something')
- assert_equal '..something', subject.send(:key, '', 'something')
+ assert_equal '..', subject.send(:key, '', nil)
+ assert_equal 'awesome..', subject.send(:key, 'awesome', nil)
+ assert_equal 'awesome.thing..', subject.send(:key, 'awesome thing', nil)
+ assert_equal 'awesome..something', subject.send(:key, 'awesome', 'something')
+ assert_equal '..something', subject.send(:key, '', 'something')
end
should "return nil if trying to get the style for an empty class and general format" do
assert_not_nil subject.get('font', Osheet::Format.new(:general))
assert_nil subject.get('', Osheet::Format.new(:general))