Sha256: 2bbb19eb125fd603bdbfc15ef28686a174b0a3c41461aa8774be8b26926461be

Contents?: true

Size: 584 Bytes

Versions: 12

Compression:

Stored size: 584 Bytes

Contents

RSpec.describe Evil::Client::DefinitionError, "#message" do
  let(:error)    { described_class.new schema, keys, settings, original }
  let(:keys)     { [:path] }
  let(:schema)   { "Test::Api.users.update" }
  let(:settings) { :my_settings }
  let(:original) { "something got wrong" }

  subject { error.message }

  it "builds a proper error message" do
    expect(error.message).to include "failed to resolve path" \
                                     " from Test::Api.users.update schema" \
                                     " for my_settings: something got wrong"
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
evil-client-3.2.0 spec/unit/exceptions/definition_error_spec.rb
evil-client-3.1.0 spec/unit/exceptions/definition_error_spec.rb
evil-client-3.0.4 spec/unit/exceptions/definition_error_spec.rb
evil-client-3.0.3 spec/unit/exceptions/definition_error_spec.rb
evil-client-3.0.2 spec/unit/exceptions/definition_error_spec.rb
evil-client-3.0.1 spec/unit/exceptions/definition_error_spec.rb
evil-client-3.0.0 spec/unit/exceptions/definition_error_spec.rb
evil-client-2.1.1 spec/unit/exceptions/definition_error_spec.rb
evil-client-2.1.0 spec/unit/exceptions/definition_error_spec.rb
evil-client-2.0.0 spec/unit/exceptions/definition_error_spec.rb
evil-client-1.1.0 spec/unit/exceptions/definition_error_spec.rb
evil-client-1.0.0 spec/unit/exceptions/definition_error_spec.rb