Skip to content

Commit 8fdd882

Browse files
committed
Use allow instead of expect when stubbing create_release
1 parent 042879b commit 8fdd882

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

spec/create_github_release_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
context 'when no release notes file is provided' do
1717
it 'creates the release with an empty description' do
18-
expect(github_helper).to receive(:create_release).with(
18+
allow(github_helper).to receive(:create_release).with(
1919
repository: test_repo,
2020
version: test_version,
2121
name: nil,
@@ -52,7 +52,7 @@
5252
NOTES
5353

5454
with_tmp_file(named: 'release-notes.txt', content: notes) do |notes_path|
55-
expect(github_helper).to receive(:create_release).with(
55+
allow(github_helper).to receive(:create_release).with(
5656
repository: test_repo,
5757
version: test_version,
5858
name: nil,

0 commit comments

Comments
 (0)