jbender/motion-spec

View on GitHub
lib/motion-spec/matcher/eq.rb

Summary

Maintainability
A
0 mins
Test Coverage
# -*- encoding : utf-8 -*-
module MotionSpec
  module Matcher
    class Eq < SingleMethod
      def initialize(value)
        super(:==, value)
      end

      def fail_message(subject, negated)
        FailMessageRenderer.message_for_be_eq(negated, subject, @values.first)
      end
    end
  end
end