spec/acceptance/rest/channels_spec.rb in ably-1.1.0 vs spec/acceptance/rest/channels_spec.rb in ably-1.1.1
- old
+ new
@@ -58,7 +58,13 @@
describe 'using undocumented array accessor [] method on client#channels' do
let(:channel) { client.channels[channel_name] }
let(:channel_with_options) { client.channels[channel_name, options] }
it_behaves_like 'a channel'
end
+
+ describe 'using a frozen channel name' do
+ let(:channel) { client.channels[channel_name.freeze] }
+ let(:channel_with_options) { client.channels[channel_name.freeze, options] }
+ it_behaves_like 'a channel'
+ end
end
end