spec/lib/wisper_spec.rb in wisper-1.5.0 vs spec/lib/wisper_spec.rb in wisper-1.6.0
- old
+ new
@@ -76,9 +76,19 @@
expect(Wisper::GlobalListeners.listeners).not_to include listener_3
end
end
end
+ it '.publisher returns the Publisher module' do
+ expect(Wisper.publisher).to eq Wisper::Publisher
+ end
+
+ it '.clear clears all global listeners' do
+ 10.times { Wisper.subscribe(double) }
+ Wisper.clear
+ expect(Wisper::GlobalListeners.listeners).to be_empty
+ end
+
it '.configuration returns configuration' do
expect(Wisper.configuration).to be_an_instance_of(Wisper::Configuration)
end
it '.configure yields block to configuration' do