spec/key_master_spec.rb in cocoapods-keys-1.1.0 vs spec/key_master_spec.rb in cocoapods-keys-1.2.0

- old
+ new

@@ -2,15 +2,15 @@ require 'key_master' require 'tmpdir' describe CocoaPodsKeys::KeyMaster do let(:empty_keys_interface) { - IO.read(File.join(__dir__, "fixtures", "Keys_empty.h")) + File.read(fixture("Keys_empty.h")) } let(:empty_keys_implementation) { - IO.read(File.join(__dir__, "fixtures", "Keys_empty.m")) + File.read(fixture("Keys_empty.m")) } it "should work with an empty keyring" do keyring = double("Keyring", keychain_data: [], code_name: "Fake") keymaster = described_class.new(keyring, Time.new(2015, 3, 11)) @@ -36,9 +36,11 @@ keyring = double("Keyring", keychain_data: [], code_name: "Fake") keymaster = described_class.new(keyring, Time.new(2015, 3, 11)) keymaster.instance_variable_set(:@data, '"') expect(keymaster.generate_implementation).to include('"\\""') end + + private def validate_syntax(keymaster) # write out the interface and the implementation to temp files Dir.mktmpdir do |dir| # create the header file