Skip to content

Commit

Permalink
Fix Style issues
Browse files Browse the repository at this point in the history
  • Loading branch information
kalabiyau committed Oct 6, 2014
1 parent b2a3b05 commit 43e0c82
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 15 deletions.
12 changes: 6 additions & 6 deletions lib/suse/connect/status.rb
Expand Up @@ -29,12 +29,12 @@ def activations

def print_product_statuses(format = :text)
case format
when :text
status_output = text_product_status
when :json
status_output = json_product_status
else
raise UnsupportedStatusFormat, "Unsupported output format '#{format}'"
when :text
status_output = text_product_status
when :json
status_output = json_product_status
else
raise UnsupportedStatusFormat, "Unsupported output format '#{format}'"
end
puts status_output
end
Expand Down
12 changes: 6 additions & 6 deletions spec/connect/api_spec.rb
Expand Up @@ -6,12 +6,12 @@

let(:config) do
double('config',
url: 'https://example.com',
language: 'Klingon',
insecure: false,
verify_callback: nil,
debug: false,
token: 'token-shmocken'
url: 'https://example.com',
language: 'Klingon',
insecure: false,
verify_callback: nil,
debug: false,
token: 'token-shmocken'
)
end

Expand Down
4 changes: 2 additions & 2 deletions spec/connect/config_spec.rb
Expand Up @@ -61,15 +61,15 @@
allow_any_instance_of(subject).to receive(:read).and_return('insecure' => :stubval)
conf = subject.new
expect(conf.insecure).to eq :stubval
conf.merge!({:insecure => :goo})
conf.merge!(:insecure => :goo)
expect(conf.insecure).to eq :goo
end

it 'ignores unknown for config keys' do
allow_any_instance_of(subject).to receive(:read).and_return('insecure' => :base_value)
conf = subject.new
expect(conf.insecure).to eq :base_value
conf.merge!({:insecure => :goo, :logger => :base})
conf.merge!(:insecure => :goo, :logger => :base)
expect(conf.insecure).to eq :goo
end

Expand Down
2 changes: 1 addition & 1 deletion spec/connect/yast_spec.rb
Expand Up @@ -180,7 +180,7 @@
let(:params) { { url: 'http://scc.foo.com' } }

it 'merges passed params into config' do
params = {url: 'http://smt.local.domain' }
params = { url: 'http://smt.local.domain' }
allow_any_instance_of(SUSE::Connect::Config).to receive(:write!).and_return true
expect_any_instance_of(SUSE::Connect::Config).to receive(:merge!).with(params).and_call_original
subject.write_config(params)
Expand Down

0 comments on commit 43e0c82

Please sign in to comment.