Sha256: 6ef6414ae36481916c24ad53d2a7f31ea7ad31d7a05a6e85b00fe30b3e7d137f
Contents?: true
Size: 427 Bytes
Versions: 15
Compression:
Stored size: 427 Bytes
Contents
shared_examples_for "An ActiveModel" do def assert(test, *args) expect(test).to eq(true) end def assert_kind_of(klass, inspected_object) expect(inspected_object).to be_kind_of(klass) 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
15 entries across 15 versions & 1 rubygems