Sha256: a95953f21c7fd639ac3e3b831e3b6460c15dd092619c724d01cd7a4c178782dc

Contents?: true

Size: 433 Bytes

Versions: 4

Compression:

Stored size: 433 Bytes

Contents

module Shoulda
  module Matchers
    class Error < StandardError
      def self.create(attributes)
        allocate.tap do |error|
          attributes.each do |name, value|
            error.__send__("#{name}=", value)
          end

          error.__send__(:initialize)
        end
      end

      def initialize(*args)
        super
        @message = message
      end

      def message
        ""
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
shoulda-matchers-2.6.1 lib/shoulda/matchers/error.rb
shoulda-matchers-2.6.1.rc2 lib/shoulda/matchers/error.rb
shoulda-matchers-2.6.1.rc1 lib/shoulda/matchers/error.rb
shoulda-matchers-2.6.0 lib/shoulda/matchers/error.rb