lib/submodules/ably-ruby/spec/acceptance/realtime/auth_spec.rb in ably-rest-1.1.6 vs lib/submodules/ably-ruby/spec/acceptance/realtime/auth_spec.rb in ably-rest-1.1.7

- old
+ new

@@ -1235,10 +1235,10 @@ context 'when the JWT token request includes a subscribe-only capability' do let(:channel_with_publish_permissions) { "test_JWT_with_publish_#{random_str}" } let(:basic_capability) { JSON.dump(channel_name => ['subscribe'], channel_with_publish_permissions => ['publish']) } let(:auth_callback) do lambda do |token_params| - Faraday.get("#{auth_url}?keyName=#{key_name}&keySecret=#{key_secret}&capability=#{URI.escape(basic_capability)}").body + Faraday.get("#{auth_url}?keyName=#{key_name}&keySecret=#{key_secret}&capability=#{URI::Parser.new.escape(basic_capability)}").body end end let(:client_options) { default_options.merge(auth_callback: auth_callback, log_level: :error) } it 'client fails to publish to a channel with subscribe-only capability and publishes successfully on a channel with permissions' do