Method: Voltage::Mock#method_missing

Defined in:
lib/voltage/mock.rb

#method_missing(name, *args) ⇒ Object



9
10
11
12
13
# File 'lib/voltage/mock.rb', line 9

def method_missing(name, *args)
  return super unless respond_to_missing?(name)

  calls << {event: name.to_s.gsub(/^on_/, "").to_sym, args: args}
end