Skip to content

Commit

Permalink
Fix spacing linter warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
agrare committed Mar 29, 2024
1 parent 0c8bcae commit 421d6d3
Showing 1 changed file with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -128,16 +128,16 @@ def files_in_repository(git_repo_dir)

it "deletes existing records" do
# build using the first fake repo
record = build_record
existing_id = record.configuration_script_payloads.first.id
record = build_record
existing_id = record.configuration_script_payloads.first.id

# create a new fake repo and associate it with our repo
Spec::Support::FakeTerraformRepo.generate(nested_repo, nested_repo_structure)
record.update(:scm_url => "file://#{nested_repo}")
record.sync

# verify the original payload is removed
new_ids = record.configuration_script_payloads.pluck(:id)
new_ids = record.configuration_script_payloads.pluck(:id)
expect(new_ids).to be_present
expect(new_ids).to_not include(existing_id)
end
Expand Down Expand Up @@ -193,8 +193,8 @@ def files_in_repository(git_repo_dir)
end

describe "#template_name_from_git_repo_url" do
let(:git_url_branch_path) { ["git@example.com:manoj-puthran/sample-scripts.git", "v2.0", "terraform/templates/hello-world"]}
let(:https_url_branch_path) { ["https://example.com/manoj-puthran/sample-scripts.git", "v2.0", "terraform/templates/hello-world"]}
let(:git_url_branch_path) { ["git@example.com:manoj-puthran/sample-scripts.git", "v2.0", "terraform/templates/hello-world"] }
let(:https_url_branch_path) { ["https://example.com/manoj-puthran/sample-scripts.git", "v2.0", "terraform/templates/hello-world"] }
let(:expected_result) { "hello-world(v2.0):example.com/manoj-puthran/sample-scripts/terraform/templates" }

it "supports https urls" do
Expand Down Expand Up @@ -251,9 +251,9 @@ def files_in_repository(git_repo_dir)

expect(result).to be_a(described_class)
expect(result).to have_attributes(
:scm_type => "git",
:scm_branch => "other_branch",
:status => "error"
:scm_type => "git",
:scm_branch => "other_branch",
:status => "error"
)
expect(result.last_updated_on).to be_within(2.seconds).of(Time.now.utc)
expect(result.last_update_error).to start_with("Rugged::NetworkError")
Expand Down

0 comments on commit 421d6d3

Please sign in to comment.