Module: TeamsConnector::Matchers::ExpectedNumber

Included in:
HaveSentNotificationTo
Defined in:
lib/teams_connector/matchers/expected_number.rb

Instance Method Summary collapse

Instance Method Details

#at_least(count) ⇒ Object



11
12
13
14
# File 'lib/teams_connector/matchers/expected_number.rb', line 11

def at_least(count)
  set_expected_number(:at_least, count)
  self
end

#at_most(count) ⇒ Object



16
17
18
19
# File 'lib/teams_connector/matchers/expected_number.rb', line 16

def at_most(count)
  set_expected_number(:at_most, count)
  self
end

#exactly(count) ⇒ Object



6
7
8
9
# File 'lib/teams_connector/matchers/expected_number.rb', line 6

def exactly(count)
  set_expected_number(:exactly, count)
  self
end

#onceObject



25
26
27
# File 'lib/teams_connector/matchers/expected_number.rb', line 25

def once
  exactly(:once)
end

#thriceObject



33
34
35
# File 'lib/teams_connector/matchers/expected_number.rb', line 33

def thrice
  exactly(:thrice)
end

#timesObject



21
22
23
# File 'lib/teams_connector/matchers/expected_number.rb', line 21

def times
  self
end

#twiceObject



29
30
31
# File 'lib/teams_connector/matchers/expected_number.rb', line 29

def twice
  exactly(:twice)
end