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

Version Path
sup-1.2 test/unit/service/test_label_service.rb
sup-1.1 test/unit/service/test_label_service.rb
sup-1.0 test/unit/service/test_label_service.rb
sup-0.23 test/unit/service/test_label_service.rb
sup-0.22.1 test/unit/service/test_label_service.rb
sup-0.22.0 test/unit/service/test_label_service.rb
sup-0.21.0 test/unit/service/test_label_service.rb
sup-0.20.0 test/unit/service/test_label_service.rb
sup-0.19.0 test/unit/service/test_label_service.rb
sup-0.18.0 test/unit/service/test_label_service.rb