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

- old
+ new

@@ -1,30 +1,30 @@ # encoding: utf-8 -class Nanoc::NotificationCenterTest < Nanoc::TestCase +class Nanoc::Int::NotificationCenterTest < Nanoc::TestCase def test_post # Set up notification - Nanoc::NotificationCenter.on :ping_received, :test do + Nanoc::Int::NotificationCenter.on :ping_received, :test do @ping_received = true end # Post @ping_received = false - Nanoc::NotificationCenter.post :ping_received + Nanoc::Int::NotificationCenter.post :ping_received assert(@ping_received) end def test_remove # Set up notification - Nanoc::NotificationCenter.on :ping_received, :test do + Nanoc::Int::NotificationCenter.on :ping_received, :test do @ping_received = true end # Remove observer - Nanoc::NotificationCenter.remove :ping_received, :test + Nanoc::Int::NotificationCenter.remove :ping_received, :test # Post @ping_received = false - Nanoc::NotificationCenter.post :ping_received + Nanoc::Int::NotificationCenter.post :ping_received assert(!@ping_received) end end