Module: TeamsConnector::Matchers::With

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

Instance Method Summary collapse

Instance Method Details

#with(data = nil, &block) ⇒ Object



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

def with(data = nil, &block)
  @data = data
  @block = block if block
  self
end

#with_template(template = nil) ⇒ Object



12
13
14
15
# File 'lib/teams_connector/matchers/with.rb', line 12

def with_template(template = nil)
  @template_data = template
  self
end