Module: SchemaExpectations

Defined in:
lib/schema_expectations/util.rb,
lib/schema_expectations/config.rb,
lib/schema_expectations/version.rb,
lib/schema_expectations/rspec_matchers/base.rb,
lib/schema_expectations/active_record/column_reflector.rb,
lib/schema_expectations/active_record/validation_reflector.rb,
lib/schema_expectations/rspec_matchers/validate_schema_nullable.rb,
lib/schema_expectations/rspec_matchers/validate_schema_uniqueness.rb

Defined Under Namespace

Modules: ActiveRecord, RSpecMatchers, Util Classes: Config

Constant Summary collapse

VERSION =
'0.5.0'

Class Method Summary collapse

Class Method Details

.configure(&block) ⇒ Object



4
5
6
# File 'lib/schema_expectations/config.rb', line 4

def self.configure(&block)
  @config.instance_eval(&block)
end

.error_loggerObject



8
9
10
# File 'lib/schema_expectations/config.rb', line 8

def self.error_logger
  @config.error_logger
end