Sha256: c34eca32f0d38d3e6ac2d822f0e43ac6c20644c3bb6c0c809ca2fba4e12fa18f

Contents?: true

Size: 399 Bytes

Versions: 27

Compression:

Stored size: 399 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')
      clazz.name.should == '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

27 entries across 25 versions & 2 rubygems

Version Path
honeybadger-2.4.0 vendor/gems/ruby/2.1.0/gems/cucumber-1.3.16/spec/cucumber/constantize_spec.rb
honeybadger-2.4.0 vendor/gems/ruby/1.9.1/gems/cucumber-1.3.18/spec/cucumber/constantize_spec.rb
honeybadger-2.4.0 vendor/gems/ruby/2.2.0/gems/cucumber-1.3.18/spec/cucumber/constantize_spec.rb
cucumber-1.3.20 spec/cucumber/constantize_spec.rb
cucumber-1.3.19 spec/cucumber/constantize_spec.rb
cucumber-1.3.18 spec/cucumber/constantize_spec.rb
cucumber-1.3.17 spec/cucumber/constantize_spec.rb
cucumber-1.3.16 spec/cucumber/constantize_spec.rb
cucumber-1.3.15 spec/cucumber/constantize_spec.rb
cucumber-1.3.14 spec/cucumber/constantize_spec.rb
cucumber-1.3.13 spec/cucumber/constantize_spec.rb
cucumber-1.3.12 spec/cucumber/constantize_spec.rb
cucumber-1.3.11 spec/cucumber/constantize_spec.rb
cucumber-1.3.10 spec/cucumber/constantize_spec.rb
cucumber-1.3.9 spec/cucumber/constantize_spec.rb
cucumber-1.3.8 spec/cucumber/constantize_spec.rb
cucumber-1.3.7 spec/cucumber/constantize_spec.rb
cucumber-1.3.6 spec/cucumber/constantize_spec.rb
cucumber-1.3.5 spec/cucumber/constantize_spec.rb
cucumber-1.3.4 spec/cucumber/constantize_spec.rb