From 9fff969d9046aa17fbaacdaf19d59fd97fbf093b Mon Sep 17 00:00:00 2001 From: Matijs van Zuijlen Date: Sun, 25 Dec 2022 15:16:30 +0100 Subject: [PATCH] Remove superfluous method definitions from specs These methods were defined but never used. --- spec/aruba/matchers/command/have_output_size_spec.rb | 4 ---- spec/aruba/matchers/command_spec.rb | 8 -------- spec/aruba/matchers/path_spec.rb | 4 ---- 3 files changed, 16 deletions(-) diff --git a/spec/aruba/matchers/command/have_output_size_spec.rb b/spec/aruba/matchers/command/have_output_size_spec.rb index 76e5bd47a..acceecc00 100644 --- a/spec/aruba/matchers/command/have_output_size_spec.rb +++ b/spec/aruba/matchers/command/have_output_size_spec.rb @@ -3,10 +3,6 @@ RSpec.describe "Output Matchers" do include_context "uses aruba API" - def expand_path(*args) - @aruba.expand_path(*args) - end - describe "#to_have_output_size" do let(:obj) { "string" } diff --git a/spec/aruba/matchers/command_spec.rb b/spec/aruba/matchers/command_spec.rb index dd1fb937f..4083d1fab 100644 --- a/spec/aruba/matchers/command_spec.rb +++ b/spec/aruba/matchers/command_spec.rb @@ -3,14 +3,6 @@ RSpec.describe "Command Matchers" do include_context "uses aruba API" - def expand_path(*args) - @aruba.expand_path(*args) - end - - def announcer(*args) - @aruba.send(:announcer, *args) - end - describe "#to_have_exit_status" do let(:cmd) { "true" } diff --git a/spec/aruba/matchers/path_spec.rb b/spec/aruba/matchers/path_spec.rb index 560974132..d463395d0 100644 --- a/spec/aruba/matchers/path_spec.rb +++ b/spec/aruba/matchers/path_spec.rb @@ -6,10 +6,6 @@ RSpec.describe "Path Matchers" do include_context "uses aruba API" - def expand_path(*args) - @aruba.expand_path(*args) - end - describe "to_be_an_absolute_path" do let(:name) { @file_name } let(:path) { @aruba.expand_path(name) }