Skip to content

Commit

Permalink
code style fix - use do/end for multiline blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
lslezak committed Oct 29, 2014
1 parent da4434a commit 00cdc3c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
6 changes: 4 additions & 2 deletions test/ssl_certificate_details_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@
require_relative "spec_helper"

describe "Registration::SslCertificateDetails" do
subject { Registration::SslCertificateDetails.new(
Registration::SslCertificate.load_file(fixtures_file("test.pem"))) }
subject do
Registration::SslCertificateDetails.new(
Registration::SslCertificate.load_file(fixtures_file("test.pem")))
end

let(:identity) do
<<EOS
Expand Down
8 changes: 4 additions & 4 deletions test/storage_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@

describe Registration::Storage::Config do
subject { Registration::Storage::Config.instance }
let(:addon) {
let(:addon) do
{
"arch" => "x86_64",
"name" => "sle-module-legacy",
"reg_code" => "",
"release_type" => "nil",
"version" => "12"
}
}
let(:config) {
end
let(:config) do
{
"addons" => [{"arch"=>"x86_64", "name"=>"sle-module-legacy", "reg_code"=>"",
"release_type"=>"nil", "version"=>"12"}],
Expand All @@ -27,7 +27,7 @@
"reg_server_cert_fingerprint_type" => "SHA1",
"slp_discovery" => false
}
}
end

before do
# start each test with empty config
Expand Down

0 comments on commit 00cdc3c

Please sign in to comment.