Sha256: f43a0d821beabc00692f3c7b393b599ddcb9a677f11cd3bce1a3480696194d1e

Contents?: true

Size: 443 Bytes

Versions: 3

Compression:

Stored size: 443 Bytes

Contents

require_relative '../spec_helper'

module Lucid
  describe Factory do
    include Factory

    it 'should load a valid formatter' do
      generated_class = create_object_of('Lucid::Formatter::Html')
      generated_class.name.should == 'Lucid::Formatter::Html'
    end

    it 'should not load an invalid formatter' do
      expect { create_object_of('Lucid::Formatter::Testing') }.to raise_error(LoadError)
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
lucid-0.4.1 spec/lucid/factory_spec.rb
lucid-0.4.0 spec/lucid/factory_spec.rb
lucid-0.3.3 spec/lucid/factory_spec.rb