Module: CmQuiz::ReviewHelper

Included in:
CmQuiz::Review::BaseReview
Defined in:
lib/cm_quiz/review_helper.rb

Instance Method Summary collapse

Instance Method Details

#beObject



13
14
15
# File 'lib/cm_quiz/review_helper.rb', line 13

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

#be_nilObject



17
18
19
# File 'lib/cm_quiz/review_helper.rb', line 17

def be_nil
  RSpec::Matchers::BuiltIn::BeNil.new
end

#be_within(delta) ⇒ Object



21
22
23
# File 'lib/cm_quiz/review_helper.rb', line 21

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

#eq(obj) ⇒ Object



9
10
11
# File 'lib/cm_quiz/review_helper.rb', line 9

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

#expect(target) ⇒ Object



5
6
7
# File 'lib/cm_quiz/review_helper.rb', line 5

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