Sha256: e4dfe28c406e87a4332c3e44f3c1d7d1f45204e6ffde10e58913cadc0912dd1f

Contents?: true

Size: 326 Bytes

Versions: 9

Compression:

Stored size: 326 Bytes

Contents

# encoding: utf-8
require 'spec_helper'

describe Grape::Exceptions::MissingOption do
  describe "#message" do
    let(:error) do
      described_class.new(:path)
    end

    it "contains the problem in the message" do
      error.message.should include(
        "You must specify :path options."
      )
    end

  end

end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
grape-0.7.0 spec/grape/exceptions/missing_option_spec.rb
grape-0.6.1 spec/grape/exceptions/missing_option_spec.rb
grape-0.6.0 spec/grape/exceptions/missing_option_spec.rb
grape-0.5.0 spec/grape/exceptions/missing_option_spec.rb
grape-0.4.1 spec/grape/exceptions/missing_option_spec.rb
grape-0.4.0 spec/grape/exceptions/missing_option_spec.rb
grape-0.3.2 spec/grape/exceptions/missing_option_spec.rb
grape-0.3.1 spec/grape/exceptions/missing_option_spec.rb
grape-0.3.0 spec/grape/exceptions/missing_option_spec.rb