Skip to content

Commit

Permalink
Prefer hash rocket style in spec suite (style).
Browse files Browse the repository at this point in the history
  • Loading branch information
fnichol committed Aug 5, 2014
1 parent b741db4 commit f59a762
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 10 deletions.
6 changes: 3 additions & 3 deletions spec/integration/new_release_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -57,14 +57,14 @@
end

it "releases a new cookbook" do
make_cookbook!(version: "1.2.3")
make_cookbook!(:version => "1.2.3")

VCR.use_cassette('new_release') do
Emeril::Releaser.new(logger: logger, source_path: cookbook_path).run
Emeril::Releaser.new(:logger => logger, :source_path => cookbook_path).run
end

# tag was pushed to the remote
git_tag = run_cmd("git tag", in: "#{File.dirname(cookbook_path)}/remote")
git_tag = run_cmd("git tag", :in => "#{File.dirname(cookbook_path)}/remote")
git_tag.chomp.must_equal "v1.2.3"
end
end
18 changes: 11 additions & 7 deletions spec/integration/skip_publish_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,31 +28,35 @@
end

it "releases a new cookbook" do
make_cookbook!(version: "4.5.6")
make_cookbook!(:version => "4.5.6")

VCR.use_cassette('new_release') do
Emeril::Releaser.new(
logger: logger, source_path: cookbook_path, publish_to_community: false
:logger => logger,
:source_path => cookbook_path,
:publish_to_community => false
).run
end

# tag was pushed to the remote
git_tag = run_cmd("git tag", in: "#{File.dirname(cookbook_path)}/remote")
git_tag = run_cmd("git tag", :in => "#{File.dirname(cookbook_path)}/remote")
git_tag.chomp.must_equal "v4.5.6"
end

it "releases a new cookbook with a custom git tag prefix" do
make_cookbook!(version: "1.0.0")
make_cookbook!(:version => "1.0.0")

VCR.use_cassette('new_release') do
Emeril::Releaser.new(
logger: logger, source_path: cookbook_path, publish_to_community: false,
tag_prefix: "release-"
:logger => logger,
:source_path => cookbook_path,
:publish_to_community => false,
:tag_prefix => "release-"
).run
end

# tag was pushed to the remote
git_tag = run_cmd("git tag", in: "#{File.dirname(cookbook_path)}/remote")
git_tag = run_cmd("git tag", :in => "#{File.dirname(cookbook_path)}/remote")
git_tag.chomp.must_equal "release-1.0.0"
end
end

0 comments on commit f59a762

Please sign in to comment.