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