Sha256: 6e0972ca95217c905dd5a7d411c8e6f6582a4a63c0cd7e7a632e321065321935
Contents?: true
Size: 729 Bytes
Versions: 12
Compression:
Stored size: 729 Bytes
Contents
describe "Get a label" do before do TestDataBuilder.new .create_pacticipant("foo") .create_label("ios") .create_label("consumer") .create_pacticipant("bar") .create_label("ios") .create_label("consumer") end let(:path) { "/pacticipants/foo/labels/ios" } let(:response_body_hash) { JSON.parse(subject.body, symbolize_names: true) } let(:expected_response_body) { {name: "ios"} } subject { get path; last_response } context "when the label exists" do it "returns a 200 OK" do expect(subject).to be_a_hal_json_success_response end it "returns the label in the body" do expect(response_body_hash).to include expected_response_body end end end
Version data entries
12 entries across 12 versions & 1 rubygems