spec/unit/settings_spec.rb in r10k-2.1.1 vs spec/unit/settings_spec.rb in r10k-2.2.0
- old
+ new
@@ -147,10 +147,17 @@
end
describe "git settings" do
it "passes settings through to the git settings" do
output = subject.evaluate("git" => {"provider" => "shellgit", "username" => "git"})
- expect(output[:git]).to eq(:provider => :shellgit, :username => "git", :private_key => nil)
+ expect(output[:git]).to eq(:provider => :shellgit, :username => "git", :private_key => nil, :repositories => [])
+ end
+
+ it "handles keywords in repository settings" do
+ output = subject.evaluate("git" => {"provider" => "shellgit",
+ "username" => "git",
+ "repositories" => [ {"remote" => "foo"} ]})
+ expect(output[:git]).to eq(:provider => :shellgit, :username => "git", :private_key => nil, :repositories => [{remote: "foo"}])
end
end
describe "forge settings" do
it "passes settings through to the forge settings" do