Sha256: fdaa66d5413959af3bd546eb9f2fd434253e6f7e2de0cd3d4ffd8171894eaeb0
Contents?: true
Size: 361 Bytes
Versions: 17
Compression:
Stored size: 361 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") lambda {f.errors_for_flash}.should_not raise_error end end end
Version data entries
17 entries across 17 versions & 1 rubygems