spec/functional_spec.rb in cocoapods-keys-1.2.1 vs spec/functional_spec.rb in cocoapods-keys-1.3.0
- old
+ new
@@ -20,46 +20,37 @@
]
}
PODFILE
end
- system("pod keys set KeyWithData such-data --silent")
- system("pod keys set AnotherKeyWithData other-data --silent")
- system("pod keys set UnusedKey - --silent")
- system("pod install --silent --no-repo-update --no-integrate")
+ system('pod keys set KeyWithData such-data --silent')
+ system('pod keys set AnotherKeyWithData other-data --silent')
+ system('pod keys set UnusedKey - --silent')
+ system('pod install --silent --no-repo-update --no-integrate')
end
end
- it "does not directly encode the keys into the implementation file" do
+ it 'does not directly encode the keys into the implementation file' do
source = File.read(File.join(@tmpdir, 'Pods/CocoaPodsKeys/TestProjectKeys.m'))
expect(source).to_not include('such-data')
expect(source).to_not include('other-data')
end
- it "is able to retrieve the correct keys from the command-line" do
+ it 'is able to retrieve the correct keys from the command-line' do
Dir.chdir(@tmpdir) do
expect(`pod keys get KeyWithData`.strip).to eq('such-data')
expect(`pod keys get AnotherKeyWithData`.strip).to eq('other-data')
end
end
- describe "with a built keys implementation" do
+ describe 'with a built keys implementation' do
before :all do
name = 'TestProjectKeys'
dir = File.join(@tmpdir, 'Pods/CocoaPodsKeys')
Dir.chdir(dir) do
system("xcrun clang -framework Foundation -bundle #{name}.m -o #{name}.bundle")
end
@bundle = File.join(dir, "#{name}.bundle")
- end
-
- it "produces an implementation that is able to return the correct keys" do
- expect(fetch_key('keyWithData')).to eq('such-data')
- expect(fetch_key('anotherKeyWithData')).to eq('other-data')
- end
-
- xit "does not include keys that were not specified in the Podfile" do
- expect(lambda { fetch_key('unusedKey') }).to raise_error
end
private
def fetch_key(key)