Sha256: 8b8b5ccd7f765c783c48db4ccfc05821c9c4b12abedf3c4691007e93816ec754

Contents?: true

Size: 325 Bytes

Versions: 2

Compression:

Stored size: 325 Bytes

Contents

# Define a_get, a_post, etc and stub_get, stub_post, etc
[:delete, :get, :post, :put].each do |method|
  self.class.send(:define_method, "a_#{method}") do
    a_request(method, Mixpanel::Mail::ENDPOINT)
  end

  self.class.send(:define_method, "stub_#{method}") do
    stub_request(method, Mixpanel::Mail::ENDPOINT)
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
mixpanel-mail-0.1.1 spec/support/webmock.rb
mixpanel-mail-0.1.0 spec/support/webmock.rb