Sha256: dcbdb964a3e82bc784718676318e582e55d42fe132891c5be2c777537aa3fca3
Contents?: true
Size: 501 Bytes
Versions: 33
Compression:
Stored size: 501 Bytes
Contents
shared_examples_for "An ActiveModel" do def assert(test, *args) expect(test).to be true end def assert_kind_of(klass, inspected_object) expect(inspected_object).to be_kind_of(klass) end def assert_equal(the_other, one) expect(one).to eq the_other end include ActiveModel::Lint::Tests ActiveModel::Lint::Tests.public_instance_methods.map{|m| m.to_s}.grep(/^test/).each do |m| example m.gsub('_',' ') do send m end end def model subject end end
Version data entries
33 entries across 33 versions & 1 rubygems