Sha256: c4eeef320b81a0a693f2fa244caaa39a693e14aa7147e90a58de78ee7a9e340c

Contents?: true

Size: 397 Bytes

Versions: 2

Compression:

Stored size: 397 Bytes

Contents

require File.dirname(__FILE__) + '/spec_helper'

describe Nomen::Formatters do
  context 'formatter lookup' do
    it 'should return formatter object reference' do
      expect(Nomen::Formatters.lookup(:full)).to eq(Nomen::Formatters::Full)
    end

    it 'should raise an error if a formatter cannot be found' do
      expect{Nomen::Formatters.lookup(:unknown)}.to raise_error
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
nomen-0.0.2 spec/formatters_spec.rb
nomen-0.0.1 spec/formatters_spec.rb