Skip to content

Commit

Permalink
Fix spec regex
Browse files Browse the repository at this point in the history
  • Loading branch information
gangelo committed Dec 28, 2023
1 parent e6e123d commit 2c5beb3
Showing 1 changed file with 20 additions and 4 deletions.
24 changes: 20 additions & 4 deletions spec/branch/name/feature_specs/create_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@

context 'when no config files exist' do
let(:expected_output) do
/.Branch name "12345_foo_bar" has been copied to the clipboard.*/m
if OS.mac? || OS.windows?
/Branch name: "12345_foo_bar"\nBranch name "12345_foo_bar" has been copied to the clipboard!/
else
/Branch name: "12345_foo_bar"/
end
end

it 'uses the defaut configuration to format the branch name' do
Expand All @@ -24,7 +28,11 @@
end

let(:expected_output) do
/.Branch name "12345-foo-bar" has been copied to the clipboard.*/m
if OS.mac? || OS.windows?
/Branch name: "12345-foo-bar"\nBranch name "12345-foo-bar" has been copied to the clipboard!/
else
/Branch name: "12345-foo-bar"/
end
end

it 'uses the local configuration to format the branch name' do
Expand All @@ -43,7 +51,11 @@
end

let(:expected_output) do
/.Branch name "foo_bar_12345" has been copied to the clipboard.*/m
if OS.mac? || OS.windows?
/Branch name: "foo_bar_12345"\nBranch name "foo_bar_12345" has been copied to the clipboard!/
else
/Branch name: "foo_bar_12345"/
end
end

it 'uses the global configuration to format the branch name' do
Expand All @@ -64,7 +76,11 @@
end

let(:expected_output) do
/.Branch name "foo_bar_12345" has been copied to the clipboard.*/m
if OS.mac? || OS.windows?
/Branch name: "foo_bar_12345"\nBranch name "foo_bar_12345" has been copied to the clipboard!/
else
/Branch name: "foo_bar_12345"/
end
end

it 'uses the local config file to format the branch name' do
Expand Down

0 comments on commit 2c5beb3

Please sign in to comment.