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

Version Path
simple_model-1.4.3 spec/simple_model/error_helpers_spec.rb
simple_model-1.4.2 spec/simple_model/error_helpers_spec.rb
simple_model-1.4.1 spec/simple_model/error_helpers_spec.rb
simple_model-1.4.0 spec/simple_model/error_helpers_spec.rb
simple_model-1.3.0 spec/simple_model/error_helpers_spec.rb
simple_model-1.2.27 spec/error_helpers_spec.rb