lib/submodules/ably-ruby/spec/unit/util/crypto_spec.rb in ably-rest-0.7.5 vs lib/submodules/ably-ruby/spec/unit/util/crypto_spec.rb in ably-rest-0.8.1
- old
+ new
@@ -43,10 +43,10 @@
expect { subject.encrypt(empty_string) }.to raise_error ArgumentError, /data must not be empty/
end
end
context 'using shared client lib fixture data' do
- let(:resources_root) { File.expand_path('../../../resources', __FILE__) }
+ let(:resources_root) { File.expand_path('../../../../lib/submodules/ably-common/test-resources', __FILE__) }
let(:encryption_data_128) { JSON.parse(File.read(File.join(resources_root, 'crypto-data-128.json'))) }
let(:encryption_data_256) { JSON.parse(File.read(File.join(resources_root, 'crypto-data-256.json'))) }
shared_examples 'an Ably encrypter and decrypter' do
let(:algorithm) { data['algorithm'].upcase }