spec/functional_spec.rb in cocoapods-keys-1.5.2 vs spec/functional_spec.rb in cocoapods-keys-1.6.0
- old
+ new
@@ -47,9 +47,20 @@
expect(`pod keys get KeyWithData`.strip).to eq('such-data')
expect(`pod keys get AnotherKeyWithData`.strip).to eq('other-data')
end
end
+ it 'is able to export the correct keys from the command-line' do
+ Dir.chdir(@tmpdir) do
+ exported_keys = <<-EOS
+pod keys set KeyWithData "such-data" TestProject
+pod keys set AnotherKeyWithData "other-data" TestProject
+pod keys set UnusedKey "-" TestProject
+EOS
+ expect(`pod keys export`.strip).to eq(exported_keys.strip)
+ end
+ end
+
describe 'with a built keys implementation' do
before :all do
name = 'TestProjectKeys'
dir = File.join(@tmpdir, 'Pods/CocoaPodsKeys')
Dir.chdir(dir) do