spec/rubygems_spec.rb in muzang-plugins-1.0.1 vs spec/rubygems_spec.rb in muzang-plugins-1.0.2
- old
+ new
@@ -54,9 +54,21 @@
@connection.messages.include? "Gem acts-as-messageable jest juz obserwowany"
end
end
end
+ it "should remove gem from storage" do
+ @message.message = "watch! acts-as-messageable2"
+ EM.run do
+ @rubygems.call(@connection, @message)
+ eventually(true) do
+ @rubygems.store.transaction do
+ @rubygems.store[:gems]["acts-as-messageable2"] == nil
+ end
+ end
+ end
+ end
+
it "should notice about new version of gem" do
@message.message = ""
@message.command = :join
EM.run do