Sha256: 41faa47007fa1c36226f6a5ffcaefe9b5343707199d1f5307bc2e2b02b025d3f
Contents?: true
Size: 357 Bytes
Versions: 6
Compression:
Stored size: 357 Bytes
Contents
require 'spec_helper.rb' class FooErrorClass < SimpleModel::Base end describe SimpleModel::ErrorHelpers do describe '#errors_for_flash' do it "should not raise error" do f = FooErrorClass.new f.errors.add(:foo, "something not great") f.errors.add(:bar, "doh") expect {f.errors_for_flash}.to_not raise_error end end end
Version data entries
6 entries across 6 versions & 1 rubygems