Sha256: ea11d98d78d919b163247b7f68ff4213a17e1f9233ef4ff387688c3e07489c2c
Contents?: true
Size: 722 Bytes
Versions: 41
Compression:
Stored size: 722 Bytes
Contents
require "librarian" module Librarian module Source describe Git do let(:env) { Environment.new } describe "validating options for the specfile" do context "with only known options" do it "should not raise" do expect { described_class.from_spec_args(env, "some://git/repo.git", :ref => "megapatches") }. to_not raise_error end end context "with an unknown option" do it "should raise" do expect { described_class.from_spec_args(env, "some://git/repo.git", :branch => "megapatches") }. to raise_error Error, "unrecognized options: branch" end end end end end end
Version data entries
41 entries across 41 versions & 5 rubygems