Sha256: 81cac53400e97aebe402e08b21263c600f7bb3609d536d08a7b1297643324a17

Contents?: true

Size: 476 Bytes

Versions: 2

Compression:

Stored size: 476 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

    def build_test_result(test_case, passed = true, message = nil)
      [test_case, passed, message]
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
cm_quiz-0.0.2 lib/cm_quiz/review_helper.rb
cm_quiz-0.0.1 lib/cm_quiz/review_helper.rb