test/base/test_rule_context.rb in nanoc-3.8.0 vs test/base/test_rule_context.rb in nanoc-4.0.0a1

- old
+ new

@@ -1,8 +1,8 @@ # encoding: utf-8 -class Nanoc::RuleContextTest < Nanoc::TestCase +class Nanoc::Int::RuleContextTest < Nanoc::TestCase def test_objects # Mock everything config = mock items = mock layouts = mock @@ -12,14 +12,14 @@ site.stubs(:layouts).returns(layouts) item = mock item.stubs(:site).returns(site) rep = mock rep.stubs(:item).returns(item) - compiler = Nanoc::Compiler.new(site) + compiler = Nanoc::Int::Compiler.new(site) # Create context - @rule_context = Nanoc::RuleContext.new(rep: rep, compiler: compiler) + @rule_context = Nanoc::Int::RuleContext.new(rep: rep, compiler: compiler) # Check assert_equal rep, @rule_context.rep assert_equal item, @rule_context.item assert_equal site, @rule_context.site @@ -46,13 +46,13 @@ rep.expects(:filter).with(:foo, { bar: 'baz' }) rep.expects(:layout).with('foo') rep.expects(:snapshot).with('awesome') # Mock compiler - compiler = Nanoc::Compiler.new(site) + compiler = Nanoc::Int::Compiler.new(site) # Create context - @rule_context = Nanoc::RuleContext.new(rep: rep, compiler: compiler) + @rule_context = Nanoc::Int::RuleContext.new(rep: rep, compiler: compiler) # Check rep.filter :foo, bar: 'baz' rep.layout 'foo' rep.snapshot 'awesome'