Sha256: 93b418f32e7d41e8a8e3e50511a5b13883d8d0900b8985fb35db951d989e3571

Contents?: true

Size: 365 Bytes

Versions: 5

Compression:

Stored size: 365 Bytes

Contents

require 'rspec'

module CmQuiz
  module ReviewHelper
    def expect(target)
      RSpec::Expectations::ExpectationTarget.new(target)
    end

    def eq(obj)
      RSpec::Matchers::BuiltIn::Eq.new(obj)
    end

    def be
      RSpec::Matchers::BuiltIn::Be.new
    end

    def be_within(delta)
      RSpec::Matchers::BuiltIn::BeWithin.new(delta)
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
cm_quiz-0.0.7 lib/cm_quiz/review_helper.rb
cm_quiz-0.0.6 lib/cm_quiz/review_helper.rb
cm_quiz-0.0.5 lib/cm_quiz/review_helper.rb
cm_quiz-0.0.4 lib/cm_quiz/review_helper.rb
cm_quiz-0.0.3 lib/cm_quiz/review_helper.rb