test/base/test_compiler_dsl.rb in nanoc-4.0.0b3 vs test/base/test_compiler_dsl.rb in nanoc-4.0.0b4

- old
+ new

@@ -58,11 +58,11 @@ refute_nil site.compiler.rules_collection.preprocessors.first refute_nil site.compiler.rules_collection.preprocessors.to_a.last # Apply preprocess blocks site.compiler.preprocess - assert item[:preprocessed] + assert item.attributes[:preprocessed] end end def test_include_rules # Create site @@ -284,11 +284,11 @@ end def test_create_pattern_with_regex compiler_dsl = Nanoc::Int::CompilerDSL.new(nil, { string_pattern_type: 'glob' }) - pattern = compiler_dsl.create_pattern(%r<\A/foo/a*/>) + pattern = compiler_dsl.create_pattern(%r{\A/foo/a*/}) assert pattern.match?('/foo/aaaa/') end def test_create_pattern_with_string_with_unknown_string_pattern_type compiler_dsl = Nanoc::Int::CompilerDSL.new(nil, { string_pattern_type: 'donkey' }) @@ -394,10 +394,10 @@ assert_equal(expected.source, actual.source) assert_equal(expected.kcode, actual.kcode) if expected.respond_to?(:kcode) assert_equal(expected.casefold?, actual.casefold?) assert_equal(expected.options, actual.options) assert('/foo/bar/' =~ actual) - refute('/foo/' =~ actual) + refute('/foo/' =~ actual) end def test_dsl_has_no_access_to_compiler compiler_dsl = Nanoc::Int::CompilerDSL.new(nil, {}) assert_raises(NameError) do