tests/staticpress/content/base_test.rb in staticpress-0.5.2 vs tests/staticpress/content/base_test.rb in staticpress-0.6.0

- old
+ new

@@ -1,15 +1,7 @@ require_relative '../../test_case' -require 'staticpress/content/base' -require 'staticpress/content/category' -require 'staticpress/content/index' -require 'staticpress/content/page' -require 'staticpress/content/post' -require 'staticpress/content/tag' -require 'staticpress/content/theme' - class ContentBaseTest < TestCase let(:category) { Staticpress::Content::Category.new :name => 'programming' } let(:category_1) { Staticpress::Content::Category.new(:name => 'programming', :number => '1') } let(:category_2) { Staticpress::Content::Category.new(:name => 'programming', :number => '2') } @@ -234,11 +226,11 @@ static_txt.save assert_equal static_txt.template_path.read, static_txt.output_path.read end def test_template_engine_options - expected = Compass.sass_engine_options.merge :line_comments => false, :style => :compressed - assert_eql expected, asset_style.template_engine_options(:sass) + refute asset_script.template_engine_options(:sass)[:line_comments] + assert_equal :compressed, asset_script.template_engine_options(:sass)[:style] assert_equal({}, asset_script.template_engine_options(:js)) end def test_template_types assert_equal [:erb, :markdown], chained.template_types