Sha256: 39d4fafb9df95c469c4c369066ae838529ca729f066a3a90b7fcc0e89df10b5a
Contents?: true
Size: 273 Bytes
Versions: 31
Compression:
Stored size: 273 Bytes
Contents
require 'rails_helper' RSpec.describe Locatable, type: :model do it "validates the locatable type" do l = Locatable.make(locatable: User.make) l.valid?.should == false l.errors.messages.should == {:locatable_type=>["is not included in the list"]} end end
Version data entries
31 entries across 31 versions & 1 rubygems