Sha256: c4c23c843b4facacab28d63c1ac647872f62859b5ec3dc847d227cca9f472f31

Contents?: true

Size: 432 Bytes

Versions: 5

Compression:

Stored size: 432 Bytes

Contents

shared_examples "an assertion" do
  it "initializes with an engine" do
    expect(assertion.engine).to be_a(YSI::Engine)
  end

  it "has a display name" do
    expect(assertion.display_name).to be_a(String)
  end

  it "checks" do
    expect(assertion).to respond_to(:check)
  end

  it "asserts" do
    expect(assertion).to respond_to(:assert)
  end

  it "reports errors" do
    expect(assertion).to respond_to(:error)
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
yes_ship_it-0.0.5 spec/unit/support/assertion_examples.rb
yes_ship_it-0.0.4 spec/unit/support/assertion_examples.rb
yes_ship_it-0.0.3 spec/unit/support/assertion_examples.rb
yes_ship_it-0.0.2 spec/unit/support/assertion_examples.rb
yes_ship_it-0.0.1 spec/unit/support/assertion_examples.rb