test/base/test_checksum_store.rb in nanoc-3.8.0 vs test/base/test_checksum_store.rb in nanoc-4.0.0a1
- old
+ new
@@ -1,8 +1,8 @@
# encoding: utf-8
-class Nanoc::ChecksumStoreTest < Nanoc::TestCase
+class Nanoc::Int::ChecksumStoreTest < Nanoc::TestCase
def test_get_with_existing_object
require 'pstore'
# Create store
FileUtils.mkdir_p('tmp')
@@ -11,20 +11,20 @@
pstore[:data] = { [:item, '/moo/'] => 'zomg' }
pstore[:version] = 1
end
# Check
- store = Nanoc::ChecksumStore.new
+ store = Nanoc::Int::ChecksumStore.new
store.load
- obj = Nanoc::Item.new('Moo?', {}, '/moo/')
+ obj = Nanoc::Int::Item.new('Moo?', {}, '/moo/')
assert_equal 'zomg', store[obj]
end
def test_get_with_nonexistant_object
- store = Nanoc::ChecksumStore.new
+ store = Nanoc::Int::ChecksumStore.new
store.load
# Check
- obj = Nanoc::Item.new('Moo?', {}, '/animals/cow/')
+ obj = Nanoc::Int::Item.new('Moo?', {}, '/animals/cow/')
assert_equal nil, store[obj]
end
end