Skip to content

Commit

Permalink
Make regexp literal more explict as a method parameter (style).
Browse files Browse the repository at this point in the history
  • Loading branch information
fnichol committed Aug 5, 2014
1 parent 1b59fb7 commit b741db4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions spec/unit/emeril/git_tagger_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@

it "tags the repo" do
git_tagger.run
run_cmd(%{git tag}).must_match /^v4.1.1$/
run_cmd(%{git tag}).must_match(/^v4.1.1$/)
end

it "disables the tag prefix" do
Expand All @@ -50,7 +50,7 @@
:tag_prefix => false
).run

run_cmd(%{git tag}).must_match /^4.1.1$/
run_cmd(%{git tag}).must_match(/^4.1.1$/)
end

it "uses a custom tag prefix" do
Expand All @@ -61,7 +61,7 @@
:tag_prefix => "version-"
).run

run_cmd(%{git tag}).must_match /^version-4.1.1$/
run_cmd(%{git tag}).must_match(/^version-4.1.1$/)
end

it "pushes the tag to the remote" do
Expand Down
8 changes: 4 additions & 4 deletions spec/unit/emeril/publisher_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ def run; end
it "calls super if logger is nil" do
ui_without_logger.msg("yo")

stdout.string.must_match /^yo$/
stdout.string.must_match(/^yo$/)
end
end

Expand All @@ -148,7 +148,7 @@ def run; end
it "calls super if logger is nil" do
ui_without_logger.err("yolo")

stderr.string.must_match /^yolo$/
stderr.string.must_match(/^yolo$/)
end
end

Expand All @@ -163,7 +163,7 @@ def run; end
it "calls super if logger is nil" do
ui_without_logger.err("caution")

stderr.string.must_match /^caution$/
stderr.string.must_match(/^caution$/)
end
end

Expand All @@ -178,7 +178,7 @@ def run; end
it "calls super if logger is nil" do
ui_without_logger.fatal("die")

stderr.string.must_match /die$/
stderr.string.must_match(/die$/)
end
end

Expand Down

0 comments on commit b741db4

Please sign in to comment.