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

Version Path
simple_model-1.2.26 spec/error_helpers_spec.rb
simple_model-1.2.25 spec/error_helpers_spec.rb
simple_model-1.2.24 spec/error_helpers_spec.rb
simple_model-1.2.23 spec/error_helpers_spec.rb
simple_model-1.2.22 spec/error_helpers_spec.rb
simple_model-1.2.21 spec/error_helpers_spec.rb
simple_model-1.2.20 spec/error_helpers_spec.rb
simple_model-1.2.19 spec/error_helpers_spec.rb
simple_model-1.2.18 spec/error_helpers_spec.rb
simple_model-1.2.17 spec/error_helpers_spec.rb
simple_model-1.2.16 spec/error_helpers_spec.rb
simple_model-1.2.15 spec/error_helpers_spec.rb
simple_model-1.2.13 spec/error_helpers_spec.rb
simple_model-1.2.12 spec/error_helpers_spec.rb
simple_model-1.2.11 spec/error_helpers_spec.rb
simple_model-1.2.10 spec/error_helpers_spec.rb
simple_model-1.2.9 spec/error_helpers_spec.rb