Sha256: bf385f1f807430ea9e3a3596dc977509aaf2f4401fc49036fad98c42d73ee8e9
Contents?: true
Size: 452 Bytes
Versions: 8
Compression:
Stored size: 452 Bytes
Contents
require 'pact/consumer_contract/file_name' module Pact describe FileName do describe "file_path" do let(:subject) { FileName.file_path 'foo', 'bar', 'tmp/pacts' } it { is_expected.to eq 'tmp/pacts/foo-bar.json' } context "when unique is true" do let(:subject) { FileName.file_path 'foo', 'bar', 'tmp/pacts', unique: true } it { is_expected.to match %r{tmp/pacts/foo-bar-\d+.json} } end end end end
Version data entries
8 entries across 8 versions & 1 rubygems