Sha256: 9f947b631dc4c31d8a6f79bbd7ab3b80d446f43bb9331d8163d6e29e096e3f3c

Contents?: true

Size: 514 Bytes

Versions: 11

Compression:

Stored size: 514 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 do
      expect(subject.get_adapter_path("notifier").to_s).to match(
        "app/assets/javascripts/job_notifier/notifier.js")
    end

    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

11 entries across 11 versions & 1 rubygems

Version Path
job_notifier-3.0.0 spec/lib/job_notifier/adapters_spec.rb
job_notifier-2.0.0 spec/lib/job_notifier/adapters_spec.rb
job_notifier-1.5.0 spec/lib/job_notifier/adapters_spec.rb
job_notifier-1.4.0 spec/lib/job_notifier/adapters_spec.rb
job_notifier-1.3.0 spec/lib/job_notifier/adapters_spec.rb
job_notifier-1.2.4 spec/lib/job_notifier/adapters_spec.rb
job_notifier-1.2.3 spec/lib/job_notifier/adapters_spec.rb
job_notifier-1.2.2 spec/lib/job_notifier/adapters_spec.rb
job_notifier-1.2.1 spec/lib/job_notifier/adapters_spec.rb
job_notifier-1.2.0 spec/lib/job_notifier/adapters_spec.rb
job_notifier-1.1.1 spec/lib/job_notifier/adapters_spec.rb