Sha256: 98541b6c66d5afffdbbb52d1d02420d9e02869d6c2eb1a843beeb2bc195b6c36

Contents?: true

Size: 404 Bytes

Versions: 24

Compression:

Stored size: 404 Bytes

Contents

require 'spec_helper'

module Html end

module Cucumber
  describe Constantize do
    include Constantize

    it "loads html formatter" do
      clazz = constantize('Cucumber::Formatter::Html')

      expect(clazz.name).to eq 'Cucumber::Formatter::Html'
    end

    it "fails to load a made up class" do
      expect { constantize('My::MadeUp::ClassName') }.to raise_error(LoadError)
    end
  end
end

Version data entries

24 entries across 24 versions & 2 rubygems

Version Path
cucumber-2.99.0 spec/cucumber/constantize_spec.rb
mobiusloop-0.1.5 spec/cucumber/constantize_spec.rb
cucumber-2.4.0 spec/cucumber/constantize_spec.rb
mobiusloop-0.1.3 spec/cucumber/constantize_spec.rb
mobiusloop-0.1.2 spec/cucumber/constantize_spec.rb
cucumber-2.3.3 spec/cucumber/constantize_spec.rb
cucumber-2.3.2 spec/cucumber/constantize_spec.rb
cucumber-2.3.1 spec/cucumber/constantize_spec.rb
cucumber-2.3.0 spec/cucumber/constantize_spec.rb
cucumber-2.2.0 spec/cucumber/constantize_spec.rb
cucumber-2.1.0 spec/cucumber/constantize_spec.rb
cucumber-2.0.2 spec/cucumber/constantize_spec.rb
cucumber-2.0.1 spec/cucumber/constantize_spec.rb
cucumber-2.0.0 spec/cucumber/constantize_spec.rb
cucumber-2.0.0.rc.5 spec/cucumber/constantize_spec.rb
cucumber-2.0.0.rc.4 spec/cucumber/constantize_spec.rb
cucumber-2.0.0.rc.3 spec/cucumber/constantize_spec.rb
cucumber-2.0.0.rc.2 spec/cucumber/constantize_spec.rb
cucumber-2.0.0.rc.1 spec/cucumber/constantize_spec.rb
cucumber-2.0.0.beta.5 spec/cucumber/constantize_spec.rb