Sha256: ffc7b70388c656ea0bdbb9efa245f580d896d37d257871c3872265a6c1494792

Contents?: true

Size: 501 Bytes

Versions: 23

Compression:

Stored size: 501 Bytes

Contents

require 'spec_helper'
require 'active_support/i18n'
require 'doorkeeper/oauth/error'

module Doorkeeper::OAuth
  describe Error do
    subject { Error.new(:some_error, :some_state) }

    it { should respond_to(:name) }
    it { should respond_to(:state) }

    describe :description do
      it 'is translated from translation messages' do
        expect(I18n).to receive(:translate).with(:some_error, scope: [:doorkeeper, :errors, :messages])
        subject.description
      end
    end
  end
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
doorkeeper-3.0.1 spec/lib/oauth/error_spec.rb
doorkeeper-2.2.2 spec/lib/oauth/error_spec.rb
doorkeeper-3.0.0 spec/lib/oauth/error_spec.rb
doorkeeper-3.0.0.rc2 spec/lib/oauth/error_spec.rb
doorkeeper-3.0.0.rc1 spec/lib/oauth/error_spec.rb
doorkeeper-2.2.1 spec/lib/oauth/error_spec.rb
doorkeeper-2.2.0 spec/lib/oauth/error_spec.rb
doorkeeper-2.1.4 spec/lib/oauth/error_spec.rb
doorkeeper-1.4.2 spec/lib/oauth/error_spec.rb
doorkeeper-2.1.3 spec/lib/oauth/error_spec.rb
doorkeeper-2.1.2 spec/lib/oauth/error_spec.rb
doorkeeper-2.1.1 spec/lib/oauth/error_spec.rb
doorkeeper-2.1.0 spec/lib/oauth/error_spec.rb
doorkeeper-2.0.1 spec/lib/oauth/error_spec.rb
doorkeeper-1.4.1 spec/lib/oauth/error_spec.rb
doorkeeper-2.0.0 spec/lib/oauth/error_spec.rb
doorkeeper-2.0.0.rc3 spec/lib/oauth/error_spec.rb
doorkeeper-2.0.0.rc2 spec/lib/oauth/error_spec.rb
doorkeeper-2.0.0.alpha1 spec/lib/oauth/error_spec.rb
doorkeeper-1.4.0 spec/lib/oauth/error_spec.rb