Sha256: da8fdfa77d176f0010b31dc837db1bfc1fdb98bd48a1316357276cf2eed58345

Contents?: true

Size: 234 Bytes

Versions: 5

Compression:

Stored size: 234 Bytes

Contents

# encoding: utf-8

RSpec.describe TTY::Prompt::Converters do
  it "enforces block argument" do
    expect {
      TTY::Prompt::Converters.on_error
    }.to raise_error(ArgumentError, 'You need to provide a block argument.')
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
tty-prompt-0.17.2 spec/unit/converters/on_error_spec.rb
tty-prompt-0.17.1 spec/unit/converters/on_error_spec.rb
tty-prompt-0.17.0 spec/unit/converters/on_error_spec.rb
tty-prompt-0.12.0 spec/unit/converters/on_error_spec.rb
tty-prompt-0.11.0 spec/unit/converters/on_error_spec.rb