Sha256: fe97aa2103df1f413c125e669c0d8de0d53829fcdffd17517c041970d006b891
Contents?: true
Size: 433 Bytes
Versions: 76
Compression:
Stored size: 433 Bytes
Contents
# encoding: utf-8 require 'active_support/core_ext/string/inflections' RSpec::Matchers.define :be_defined do match do |actual| begin actual.constantize return true rescue StandardError return false end end failure_message do |actual| "expected that #{actual} should be defined" end failure_message_when_negated do |actual| "expected that #{actual} should not be defined" end end
Version data entries
76 entries across 76 versions & 1 rubygems