Skip to content

Commit

Permalink
Merge pull request #453 from SUSE/fix_stub_default_config_file_in_specs
Browse files Browse the repository at this point in the history
Fix: Stub default config file in specs
  • Loading branch information
ngetahun committed Jan 11, 2021
2 parents 79cf911 + 253ef51 commit 8100a67
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions spec/connect/client_spec.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
require 'spec_helper'

describe SUSE::Connect::Client do
before do
stub_const('SUSE::Connect::Config::DEFAULT_CONFIG_FILE', 'spec/fixtures/SUSEConnect')
end
let(:config) { SUSE::Connect::Config.new }
let(:default_logger) { SUSE::Connect::GlobalLogger.instance.log }
let(:string_logger) { ::Logger.new(StringIO.new) }
Expand All @@ -18,6 +21,7 @@

subject { client_instance }


describe '.new' do
context 'empty opts' do
it 'should set url to default_url' do
Expand Down

0 comments on commit 8100a67

Please sign in to comment.