Sha256: 3705b50930e73e6ec484973401392ae08dfe23bce7b2d635c531aa416bfa21bd
Contents?: true
Size: 923 Bytes
Versions: 3
Compression:
Stored size: 923 Bytes
Contents
require 'spec_helper' describe Approvals::Verifiers::JsonVerifier do subject(:instance) do described_class.new(received_path, approved_path) end context "with same json content but different formatting" do let(:received_path) do "./spec/fixtures/json_approval_with_different_whitespace/received.json" end let(:approved_path) do "./spec/fixtures/json_approval_with_different_whitespace/approved.json" end it "passes verification" do expect(instance.verify).to be_truthy end end context "with different json content" do let(:received_path) do "./spec/fixtures/json_approval_with_different_whitespace/received_different_content.json" end let(:approved_path) do "./spec/fixtures/json_approval_with_different_whitespace/approved.json" end it "does not passe verification" do expect(instance.verify).to be_falsy end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
approvals-0.0.26 | spec/verifiers/json_verifier_spec.rb |
approvals-0.0.25 | spec/verifiers/json_verifier_spec.rb |
approvals-0.0.24 | spec/verifiers/json_verifier_spec.rb |