spec/rubygems_spec.rb in muzang-plugins-1.1.0 vs spec/rubygems_spec.rb in muzang-plugins-1.1.1
- old
+ new
@@ -28,32 +28,32 @@
it "should add gem to watching list" do
@message.message = "watch! acts-as-messageable"
EM.run do
@rubygems.call(@connection, @message)
eventually(true, :times => 10) do
- @connection.messages.include? "Dodalem gema acts-as-messageable do obserwowanych" and
- @connection.messages.include? "Aktualna wersja: acts-as-messageable (0.4.2)"
+ @connection.messages.include? "I added gem acts-as-messageable to watchlist" and
+ @connection.messages.include? "Current version: acts-as-messageable (0.4.2)"
end
end
end
it "should raise error" do
@message.message = "watch! acts-as-messageable2"
EM.run do
@rubygems.call(@connection, @message)
eventually(true) do
- @connection.messages.include? "Niepoprawna nazwa gema"
+ @connection.messages.include? "Gem name is incorrect"
end
end
end
it "should not add gem twice to store" do
@message.message = "watch! acts-as-messageable"
EM.run do
2.times{ @rubygems.call(@connection, @message) }
eventually(true) do
- @connection.messages.include? "Gem acts-as-messageable jest juz obserwowany"
+ @connection.messages.include? "Gem acts-as-messageable is already observed"
end
end
end
it "should remove gem from storage" do
@@ -78,10 +78,10 @@
@rubygems.call(@connection, @message)
@rubygems.store.transaction{ @rubygems.store[:gems]["acts-as-messageable"][:version] = "0.4.1" }
eventually(true, :every => 0.1, :total => 100) do
- @connection.messages.include? "Nowa wersja acts-as-messageable (0.4.2)"
+ @connection.messages.include? "New version acts-as-messageable (0.4.2)"
end
end
end
end