spec/circleci/bundle/update/pr/note_spec.rb in circleci-bundle-update-pr-3.0.0 vs spec/circleci/bundle/update/pr/note_spec.rb in circleci-bundle-update-pr-3.1.0

- old
+ new

@@ -52,27 +52,27 @@ describe '.read' do subject { Circleci::Bundle::Update::Pr::Note.read } context 'with .circleci/BUNDLE_UPDATE_NOTE.md' do before do - File.open('.circleci/BUNDLE_UPDATE_NOTE.md', 'w') { |f| f.write('I am .circleci/BUNDLE_UPDATE_NOTE.md') } + File.write('.circleci/BUNDLE_UPDATE_NOTE.md', 'I am .circleci/BUNDLE_UPDATE_NOTE.md') end it { is_expected.to eq 'I am .circleci/BUNDLE_UPDATE_NOTE.md' } end context 'with CIRCLECI_BUNDLE_UPDATE_NOTE.md' do before do - File.open('CIRCLECI_BUNDLE_UPDATE_NOTE.md', 'w') { |f| f.write('I am CIRCLECI_BUNDLE_UPDATE_NOTE.md') } + File.write('CIRCLECI_BUNDLE_UPDATE_NOTE.md', 'I am CIRCLECI_BUNDLE_UPDATE_NOTE.md') end it { is_expected.to eq 'I am CIRCLECI_BUNDLE_UPDATE_NOTE.md' } end context 'with .circleci/BUNDLE_UPDATE_NOTE.md and CIRCLECI_BUNDLE_UPDATE_NOTE.md' do before do - File.open('.circleci/BUNDLE_UPDATE_NOTE.md', 'w') { |f| f.write('I am .circleci/BUNDLE_UPDATE_NOTE.md') } - File.open('CIRCLECI_BUNDLE_UPDATE_NOTE.md', 'w') { |f| f.write('I am CIRCLECI_BUNDLE_UPDATE_NOTE.md') } + File.write('.circleci/BUNDLE_UPDATE_NOTE.md', 'I am .circleci/BUNDLE_UPDATE_NOTE.md') + File.write('CIRCLECI_BUNDLE_UPDATE_NOTE.md', 'I am CIRCLECI_BUNDLE_UPDATE_NOTE.md') end it { is_expected.to eq 'I am .circleci/BUNDLE_UPDATE_NOTE.md' } end