spec/plugin_spec.rb in cocoapods-keys-2.0.0 vs spec/plugin_spec.rb in cocoapods-keys-2.0.1
- old
+ new
@@ -42,11 +42,11 @@
expect(@podfile).to receive(:pod).with('Keys', anything)
CocoaPodsKeys.add_keys_to_pods(@podfile, Pathname.new('Pods/CocoaPodsKeys/'), {})
end
- %w(target targets).each do |target_tag|
+ %w[target targets].each do |target_tag|
context "with a non-existant target specified as a string in '#{target_tag}'" do
it 'fails to assign the key to the tag' do
expect(@podfile).not_to receive(:pod).with('Keys', anything)
expect(Pod::UI).to receive(:puts).with('Could not find a target named \'TargetA\' in your Podfile. Stopping keys'.red)
@@ -82,11 +82,11 @@
CocoaPodsKeys.add_keys_to_pods(@podfile, Pathname.new('Pods/CocoaPodsKeys/'), {})
end
end
- %w(target targets).each do |target_tag|
+ %w[target targets].each do |target_tag|
context "with a string specified in '#{target_tag}'" do
it 'adds Keys to the target' do
expect(@podfile).not_to receive(:pod).with('Keys', anything)
expect(@target_a).to receive(:store_pod).with('Keys', anything)
@@ -141,10 +141,10 @@
CocoaPodsKeys.add_keys_to_pods(@podfile, Pathname.new('Pods/CocoaPodsKeys/'), {})
end
end
- %w(target targets).each do |target_tag|
+ %w[target targets].each do |target_tag|
context "with 'TargetA' specified as a string in '#{target_tag}'" do
it 'adds Keys to Target A' do
expect(@podfile).not_to receive(:pod).with('Keys', anything)
expect(@target_a).to receive(:store_pod).with('Keys', anything)
expect(@target_b).not_to receive(:store_pod).with('Keys', anything)