Sha256: fdd21fb29d2bd6fdeea1ea474efc0d70fba070f659fa1acbcf8e5a0cfc4ee948
Contents?: true
Size: 921 Bytes
Versions: 1
Compression:
Stored size: 921 Bytes
Contents
require "spec_helper" RSpec.describe PubsubNotifier::Client::Base do let(:client) { described_class.new } describe ".configure" do it { expect { described_class.configure(&:object_id) }.to raise_error(NameError) } end describe ".config" do it { expect { described_class.config }.to raise_error(NameError) } end describe "#notify_success" do it { expect { client.notify_success("message") }.to raise_error(NotImplementedError) } end describe "#notify_failure" do it { expect { client.notify_failure("message") }.to raise_error(NotImplementedError) } end end RSpec.describe PubsubNotifier::Client::LoggerClient do let(:client) { described_class.new } describe "#notify_success" do it { expect { client.notify_success("message") }.not_to raise_error } end describe "#notify_failure" do it { expect { client.notify_failure("message") }.not_to raise_error } end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
pubsub_notifier-0.1.2 | spec/lib/client_spec.rb |