test/base/test_item_rep.rb in nanoc-4.4.4 vs test/base/test_item_rep.rb in nanoc-4.4.5
- old
+ new
@@ -137,10 +137,13 @@
end
def test_access_compiled_content_of_binary_item
content = Nanoc::Int::BinaryContent.new(File.expand_path('content/somefile.dat'))
item = Nanoc::Int::Item.new(content, {}, '/somefile/')
+
item_rep = Nanoc::Int::ItemRep.new(item, :foo)
+ item_rep.expects(:compiled?).returns(true)
+
assert_raises(Nanoc::Int::Errors::CannotGetCompiledContentOfBinaryItem) do
item_rep.compiled_content
end
end