Sha256: efa1c99a97c1ae8c1c00afebdcdf7c1d1d55ee40b9f11631f1c074befef9c2c5
Contents?: true
Size: 818 Bytes
Versions: 12
Compression:
Stored size: 818 Bytes
Contents
require "pact_broker/labels/service" module PactBroker module Labels describe Service do let(:pacticipant_name) { "foo" } let(:label_name) { "ios" } let(:options) { {pacticipant_name: pacticipant_name, label_name: label_name}} describe ".create" do subject { Service.create(options) } # Naughty integration test... didn't seem much point unit testing this it "creates the new tag" do expect(subject.name).to eq label_name expect(subject.pacticipant.name).to eq pacticipant_name end end describe "delete" do it "calls delete on the label repository" do allow_any_instance_of(Labels::Repository).to receive(:delete).with(options) Service.delete(options) end end end end end
Version data entries
12 entries across 12 versions & 1 rubygems