We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 97dc6f0 commit fa93f40Copy full SHA for fa93f40
spec/android_update_release_notes_spec.rb
@@ -0,0 +1,26 @@
1
+require 'spec_helper'
2
+
3
+describe Fastlane::Actions::AndroidUpdateReleaseNotesAction do
4
+ let(:release_notes_txt) { File.join(File.dirname(__FILE__), 'RELEASE-NOTES.txt') }
5
6
+ after do
7
+ FileUtils.remove_entry release_notes_txt
8
+ end
9
10
+ describe '#android_update_release_notes' do
11
+ it 'adds a new section on RELEASE-NOTES.txt' do
12
+ # Arrange
13
14
+ ENV['PROJECT_ROOT_FOLDER'] = File.dirname(__FILE__)
15
+ File.write(release_notes_txt, '')
16
17
+ # Act
18
+ run_described_fastlane_action(
19
+ new_version: '1.0'
20
+ )
21
22
+ # Assert
23
+ expect(File.read(release_notes_txt)).to eq("1.1\n-----\n\n\n")
24
25
26
+end
0 commit comments