Skip to content

Commit

Permalink
Merge branch 'main' of github.com:declan-fitzpatrick/dependabot-core
Browse files Browse the repository at this point in the history
  • Loading branch information
declan-fitzpatrick committed Sep 3, 2021
2 parents 7540fb2 + 8329055 commit 7353b4c
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions terraform/spec/dependabot/terraform/requirement_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,9 @@
let(:requirement_string) { "~> 4.2.5, >= 4.2.5.1" }
it { is_expected.to eq(described_class.new("~> 4.2.5", ">= 4.2.5.1")) }
end
end
end

RSpec.describe Dependabot::Terraform::Requirement do
subject(:requirement) { described_class.new(requirement_string) }
let(:requirement_string) { ">=v1.0.0" }

describe ".new" do
it { is_expected.to be_a(described_class) }

context "with a comma-separated string" do
let(:requirement_string) { "~> v4.2.5, >= v4.2.5.1" }
it { is_expected.to eq(described_class.new("~> 4.2.5", ">= 4.2.5.1")) }
end
end
end
end

0 comments on commit 7353b4c

Please sign in to comment.