Upgrade to Ruby 3.2 (#30)

* Upgrade to Ruby 3.2

* Upgrade and fix rubocop linting

* Bundle exec the parse issue command

* Go back to manually installing dependencies for issue ops
This commit is contained in:
Chase S
2023-08-14 14:13:37 +00:00
committed by GitHub
parent 090d41bc3b
commit 65b029a677
12 changed files with 86 additions and 66 deletions
+5 -5
View File
@@ -11,17 +11,17 @@ RSpec.describe Arguments do
context "when the command is found" do
before do
expect(provider).to receive(:module).and_return(::Jenkins).at_least(:once)
expect(provider).to receive(:module).and_return(Jenkins).at_least(:once)
expect(command).to receive(:classify).and_return("Audit").at_least(:once)
expect(command).to receive(:options).and_return({})
end
it { is_expected.to be_a(::Jenkins::Audit) }
it { is_expected.to be_a(Jenkins::Audit) }
end
context "when the command is not found" do
before do
expect(provider).to receive(:module).and_return(::Jenkins).at_least(:once)
expect(provider).to receive(:module).and_return(Jenkins).at_least(:once)
expect(command).to receive(:classify).and_return("Whoopsie").at_least(:once)
end
@@ -35,10 +35,10 @@ RSpec.describe Arguments do
let(:options) { {} }
before do
expect(provider).to receive(:module).and_return(::AzureDevops).at_least(:once)
expect(provider).to receive(:module).and_return(AzureDevops).at_least(:once)
expect(command).to receive(:classify).and_return("Audit").at_least(:once)
expect(command).to receive(:options).and_return(options)
expect_any_instance_of(::AzureDevops::Audit).to receive(:to_a).and_return(output)
expect_any_instance_of(AzureDevops::Audit).to receive(:to_a).and_return(output)
end
context "when the output is nil" do