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