spec/requests_spec.rb in lifen-1.6.6 vs spec/requests_spec.rb in lifen-1.6.7
- old
+ new
@@ -22,8 +22,20 @@
end
expect(request.uuid).to_not be_nil
end
+ context 'invalid channel' do
+
+ let(:channel) { Lifen::Communication::Channel.new(uuid: nil) }
+
+ it 'raises an error' do
+ expect{
+ request.send
+ }.to raise_error Lifen::Error, "Invalid channel: an UUID is required"
+ end
+
+ end
+
end
end
\ No newline at end of file