Sha256: d3f625b9dc9e80f8f2e111313983341843e965e2b70447f5b6fc5237a338a34c

Contents?: true

Size: 499 Bytes

Versions: 6

Compression:

Stored size: 499 Bytes

Contents

require "rails_helper"

RSpec.describe JobNotifier::Adapters do
  describe "#names" do
    it { expect(subject.names).to contain_exactly("notifier") }
  end

  describe "#get_adapter_path" do
    it { expect(subject.get_adapter_path("notifier").to_s).to match(
      "app/assets/javascripts/job_notifier/notifier.js") }

    it "raises error with invalid adapter" do
      expect { subject.get_adapter_path("invalid") } .to raise_error(
        JobNotifier::Error::InvalidAdapter)
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
job_notifier-1.1.0 spec/lib/job_notifier/adapters_spec.rb
job_notifier-1.0.0 spec/lib/job_notifier/adapters_spec.rb
job_notifier-0.2.1 spec/lib/job_notifier/adapters_spec.rb
job_notifier-0.2.0 spec/lib/job_notifier/adapters_spec.rb
job_notifier-0.1.1 spec/lib/job_notifier/adapters_spec.rb
job_notifier-0.1.0 spec/lib/job_notifier/adapters_spec.rb