Sha256: c68a54c271661e592acfe0e619f6daee9942abc14c53867e56134a1031587a9f
Contents?: true
Size: 768 Bytes
Versions: 5
Compression:
Stored size: 768 Bytes
Contents
# frozen_string_literal: true require 'rspec' begin require 'active_model' rescue LoadError puts 'Running specs without active_model extension' end require "#{File.dirname(__FILE__)}/../lib/valvat.rb" require 'webmock/rspec' WebMock.allow_net_connect! RSpec.configure do |config| config.mock_with :rspec config.filter_run focus: true config.run_all_when_everything_filtered = true end I18n.enforce_available_locales = false if defined?(I18n) if defined?(ActiveModel) class ModelBase include ActiveModel::Serialization include ActiveModel::Validations attr_accessor :attributes def initialize(attributes = {}) @attributes = attributes end def read_attribute_for_validation(key) @attributes[key] end end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
valvat-1.4.1 | spec/spec_helper.rb |
valvat-1.4.0 | spec/spec_helper.rb |
valvat-1.3.0 | spec/spec_helper.rb |
valvat-1.2.1 | spec/spec_helper.rb |
valvat-1.2.0 | spec/spec_helper.rb |