Skip to content

Commit

Permalink
fixing some RSpec tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Esity committed Jun 9, 2021
1 parent 5353bc0 commit 606c608
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions lib/legion/crypt/cluster_secret.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ def from_settings
alias cluster_secret from_settings

def from_transport # rubocop:disable Metrics/AbcSize
return nil unless Legion::Settings[:transport][:connected]

require 'legion/transport/messages/request_cluster_secret'
Legion::Logging.info 'Requesting cluster secret via public key'
Legion::Logging.warn 'cluster_secret already set but we are requesting a new value' unless from_settings.nil?
Expand Down
2 changes: 1 addition & 1 deletion lib/legion/crypt/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

module Legion
module Crypt
VERSION = '0.3.0'
VERSION = '1.2.0'
end
end
2 changes: 1 addition & 1 deletion spec/legion/cluster_secret_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def self.get(_)
end

it '.only_member?' do
expect(@cs.only_member?).to eq true
expect(@cs.only_member?).to eq nil
end

it '.push_cs_to_vault' do
Expand Down

0 comments on commit 606c608

Please sign in to comment.