Sha256: b772211b80bbd74983c9c041a68aca23644e16d612abc30a1cd891fa92a2ca9b
Contents?: true
Size: 516 Bytes
Versions: 10
Compression:
Stored size: 516 Bytes
Contents
require "test_helper" require "sup/service/label_service" describe Redwood::LabelService do describe "#add_labels" do it "add labels to all messages matching the query" do q = 'is:starred' label = 'superstarred' message = mock!.add_label(label).subject index = mock!.find_messages(q){ [message] }.subject mock(index).update_message_state(message) mock(index).save_index service = Redwood::LabelService.new(index) service.add_labels q, label end end end
Version data entries
10 entries across 10 versions & 1 rubygems