diff --git a/spec/unit/emeril/git_tagger_spec.rb b/spec/unit/emeril/git_tagger_spec.rb index e3653b4..23415b2 100644 --- a/spec/unit/emeril/git_tagger_spec.rb +++ b/spec/unit/emeril/git_tagger_spec.rb @@ -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 @@ -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 @@ -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 diff --git a/spec/unit/emeril/publisher_spec.rb b/spec/unit/emeril/publisher_spec.rb index 3a834cd..7ed2185 100644 --- a/spec/unit/emeril/publisher_spec.rb +++ b/spec/unit/emeril/publisher_spec.rb @@ -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 @@ -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 @@ -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 @@ -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