Skip to content

Commit

Permalink
test: add test for tagging pacticipant version
Browse files Browse the repository at this point in the history
  • Loading branch information
bethesque committed Sep 6, 2017
1 parent 5fb16b6 commit af572ac
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions spec/features/tag_version_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
describe "tagging a pacticipant version" do
let(:path) { "/pacticipants/Foo/versions/1.2.3/tags/feat%2Fbar" }

subject { put path,nil, {'CONTENT_TYPE' => 'application/json'}; last_response }

context "when the pacticipant/version/tag do not exist" do
it "creates a tag" do
expect{ subject }.to change {
PactBroker::Domain::Tag.where(name: 'feat/bar').count
}.by(1)
end
end
end

0 comments on commit af572ac

Please sign in to comment.