Skip to content

Commit

Permalink
Fix uniqueness violation in Pact tests
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasleese authored and kevindew committed Dec 21, 2016
1 parent 085a730 commit e237a2d
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions spec/service_consumers/pact_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -218,23 +218,21 @@

provider_state "a content item exists in with a superseded version with content_id: bed722e6-db68-43e5-9079-063f623335a7" do
set_up do
FactoryGirl.create(:content_item,
FactoryGirl.create(:superseded_content_item,
content_id: "bed722e6-db68-43e5-9079-063f623335a7",
locale: "en",
document_type: "topic",
schema_name: "topic",
public_updated_at: '2015-01-03',
state: "superseded",
user_facing_version: 1,
)

FactoryGirl.create(:content_item,
FactoryGirl.create(:live_content_item,
content_id: "bed722e6-db68-43e5-9079-063f623335a7",
locale: "en",
document_type: "topic",
schema_name: "topic",
public_updated_at: '2015-01-03',
state: "published",
user_facing_version: 2,
)
end
Expand Down

0 comments on commit e237a2d

Please sign in to comment.