Sha256: 29e3ff4960bb94ff7d5b48c99a4d908afcd1e3154e3d1249be1f9eee9db94745
Contents?: true
Size: 484 Bytes
Versions: 1
Compression:
Stored size: 484 Bytes
Contents
require 'lazy_const/spec' module LazyModelConst::ExtendedModelMixins def defines_model_consts(*consts) defines_consts(*consts) consts.each do |const| it "defined constant #{const} is a valid #{described_class}" do described_class.public_send(const.to_sym).should be_valid end end end alias_method :defines_model_const, :defines_model_consts end RSpec.configure do |config| config.extend LazyModelConst::ExtendedModelMixins, type: :model end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
lazy_model_const-0.1.1 | lib/lazy_model_const/spec.rb |