Skip to content

Commit 1daa47b

Browse files
authored
Merge pull request #7 from jdee/fix-target-parameter
fix #5: Bad key for :target option. Added unit tests for options.
2 parents 78354f0 + 313ee77 commit 1daa47b

File tree

2 files changed

+29
-1
lines changed

2 files changed

+29
-1
lines changed

Gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: .
33
specs:
4-
fastlane-plugin-settings_bundle (1.1.0)
4+
fastlane-plugin-settings_bundle (1.1.1)
55
plist
66
xcodeproj (>= 1.4.0)
77

spec/update_settings_bundle_action_spec.rb

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,34 @@
6161
end
6262
end
6363

64+
describe 'options' do
65+
let(:options) { action.available_options }
66+
67+
it 'includes a :xcodeproj option' do
68+
expect(options.find { |o| o.key == :xcodeproj && o.env_name == "SETTINGS_BUNDLE_XCODEPROJ" }).not_to be_nil
69+
end
70+
71+
it 'includes a :key option' do
72+
expect(options.find { |o| o.key == :key && o.env_name == "SETTINGS_BUNDLE_KEY" }).not_to be_nil
73+
end
74+
75+
it 'includes a :value option' do
76+
expect(options.find { |o| o.key == :value && o.env_name == "SETTINGS_BUNDLE_VALUE" }).not_to be_nil
77+
end
78+
79+
it 'includes a :configuration option' do
80+
expect(options.find { |o| o.key == :configuration && o.env_name == "SETTINGS_BUNDLE_CONFIGURATION" }).not_to be_nil
81+
end
82+
83+
it 'includes a :file option' do
84+
expect(options.find { |o| o.key == :file && o.env_name == "SETTINGS_BUNDLE_FILE" }).not_to be_nil
85+
end
86+
87+
it 'includes a :target option' do
88+
expect(options.find { |o| o.key == :target && o.env_name == "SETTINGS_BUNDLE_TARGET" }).not_to be_nil
89+
end
90+
end
91+
6492
# Satisfy simplecov
6593
describe 'other methods' do
6694
it 'has examples' do

0 commit comments

Comments
 (0)