summaryrefslogtreecommitdiffhomepage
path: root/spec/dispatch/adapter/tester_spec.rb
blob: 9b0bbead5a0378dab689d080ec929288a6d036e6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# frozen_string_literal: true

RSpec.describe Dispatch::Adapter::Tester do
  it "has a version number" do
    expect(Dispatch::Adapter::Tester::VERSION).not_to be_nil
  end

  it "exposes the Playbook class" do
    expect(Dispatch::Adapter::Tester::Playbook).to be_a(Class)
  end

  it "exposes the Step class" do
    expect(Dispatch::Adapter::Tester::Step).to be_a(Class)
  end

  it "exposes error classes" do
    expect(Dispatch::Adapter::Tester::Error).to be < StandardError
    expect(Dispatch::Adapter::Tester::InvalidPlaybookError).to be < Dispatch::Adapter::Tester::Error
    expect(Dispatch::Adapter::Tester::PlaybookExhaustedError).to be < Dispatch::Adapter::Tester::Error
    expect(Dispatch::Adapter::Tester::UnconsumedStepsError).to be < Dispatch::Adapter::Tester::Error
  end
end