Skip to content

Commit

Permalink
reset filesystem_root to nil
Browse files Browse the repository at this point in the history
  • Loading branch information
digitaltom committed May 26, 2014
1 parent de4bf8e commit 065e1d1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion spec/connect/cli_spec.rb
Expand Up @@ -116,7 +116,7 @@
argv = %w{--root /path/to/root}
subject.new(argv)
SUSE::Connect::System.filesystem_root.should eq '/path/to/root'
SUSE::Connect::System.filesystem_root = ''
SUSE::Connect::System.filesystem_root = nil
end

end
Expand Down
4 changes: 2 additions & 2 deletions spec/connect/credentials_spec.rb
Expand Up @@ -15,7 +15,7 @@
SUSE::Connect::System.filesystem_root = '/path/to/root'
expected = File.join('/path/to/root', Credentials::GLOBAL_CREDENTIALS_FILE)
expect(Credentials.system_credentials_file).to eq expected
SUSE::Connect::System.filesystem_root = ''
SUSE::Connect::System.filesystem_root = nil
end

end
Expand Down Expand Up @@ -67,7 +67,7 @@
SUSE::Connect::System.filesystem_root = '/path/to/root'
credentials = Credentials.new('name', '1234', 'SLES')
credentials.filename.should start_with '/path/to/root/'
SUSE::Connect::System.filesystem_root = ''
SUSE::Connect::System.filesystem_root = nil
end

it 'raises an error when file name is not set' do
Expand Down

0 comments on commit 065e1d1

Please sign in to comment.