spec/harmony/service/rpc_service_spec.rb in harmony-service-0.3.8 vs spec/harmony/service/rpc_service_spec.rb in harmony-service-0.3.9

- old
+ new

@@ -77,9 +77,16 @@ let(:response) { Harmony::Service::Notification::AppResponse.new(text: 'Check out the new data')} it { expect(subject).to have_received(:send_response).with("{\"^o\":\"Harmony::Service::Notification::AppResponse\",\"text\":\"Check out the new data\"}", "harmony.trello", "abc123") } it { expect(subject).to have_received(:ack!) } end + context "attribute names" do + let(:request) { Harmony::Service::AttributeNamesRequest.new } + let(:response) { Harmony::Service::AttributeNamesResponse.new} + it { expect(subject).to have_received(:send_response).with("{\"^o\":\"Harmony::Service::AttributeNamesResponse\",\"options\":{}}", "harmony.trello", "abc123") } + it { expect(subject).to have_received(:ack!) } + end + end context "unacceptable request class" do before(:each) do allow(subject).to receive(:work_with_request).and_raise("A timeout occured") \ No newline at end of file