Skip to content

Commit

Permalink
rubocop, im good boy
Browse files Browse the repository at this point in the history
  • Loading branch information
ljblancoredborder committed Dec 7, 2023
1 parent f397c15 commit fdb3401
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions spec/services/ssh_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# frozen_string_literal: truezz<<SxczxZ
# frozen_string_literal: true
require 'spec_helper'

describe port(22) do
Expand All @@ -12,9 +12,9 @@
end
end

describe 'Executing commands into nodes one by one' do
NODE_LIST = command("red node list 2>/dev/null").stdout.chomp.split("\n")

NODE_LIST = command('red node list 2>/dev/null').stdout.chomp.split("\n")
describe 'Executing commands into nodes one by one' do
it 'There is at least one node in the list' do
expect(NODE_LIST).not_to be_empty
end
Expand All @@ -23,8 +23,8 @@
it "Executing basic echo on Node: #{node}" do
result = command("red node execute #{node} 'echo SERVERSPEC'")
expect(result.exit_status).to eq(0)
expect(result.stdout).to include("#{node}")
expect(result.stdout).to include("SERVERSPEC")
expect(result.stdout).to include(node.to_s)
expect(result.stdout).to include('SERVERSPEC')
end
end
end
Expand Down

0 comments on commit fdb3401

Please sign in to comment.