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 fd3a36f
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 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,7 @@

context 'when no config files exist' do
let(:expected_output) do
/.Branch name "12345_foo_bar" has been copied to the clipboard.*/m
/Branch name "12345_foo_bar" has been copied to the clipboard/
end

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

let(:expected_output) do
/.Branch name "12345-foo-bar" has been copied to the clipboard.*/m
/Branch name "12345-foo-bar" has been copied to the clipboard/
end

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

let(:expected_output) do
/.Branch name "foo_bar_12345" has been copied to the clipboard.*/m
/Branch name "foo_bar_12345" has been copied to the clipboard/
end

it 'uses the global configuration to format the branch name' do
Expand All @@ -64,7 +64,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!\n/
else
/Branch name\: \"foo_bar_12345\"\n/
end
end

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

0 comments on commit fd3a36f

Please sign in to comment.