Sha256: d3845eadbaba4cbb8e0332f582e766559fc97e62fc2a688f2b135603642fae9a

Contents?: true

Size: 271 Bytes

Versions: 61

Compression:

Stored size: 271 Bytes

Contents

module Agilibox::TestHelpers
  def json_response
    @json_response ||= JSON.parse(response.body).with_indifferent_access
  end

  def email_deliveries
    ActionMailer::Base.deliveries
  end

  def sms_deliveries
    Agilibox::SMS::Strategies::Test.deliveries
  end
end

Version data entries

61 entries across 61 versions & 1 rubygems

Version Path
agilibox-1.5.8 lib/agilibox/test_helpers.rb
agilibox-1.5.7 lib/agilibox/test_helpers.rb
agilibox-1.5.6 lib/agilibox/test_helpers.rb
agilibox-1.5.5 lib/agilibox/test_helpers.rb
agilibox-1.5.4 lib/agilibox/test_helpers.rb
agilibox-1.5.3 lib/agilibox/test_helpers.rb
agilibox-1.5.2 lib/agilibox/test_helpers.rb
agilibox-1.5.1 lib/agilibox/test_helpers.rb
agilibox-1.5.0 lib/agilibox/test_helpers.rb
agilibox-1.4.4 lib/agilibox/test_helpers.rb
agilibox-1.4.3 lib/agilibox/test_helpers.rb
agilibox-1.4.2 lib/agilibox/test_helpers.rb
agilibox-1.4.1 lib/agilibox/test_helpers.rb
agilibox-1.4.0 lib/agilibox/test_helpers.rb
agilibox-1.3.6 lib/agilibox/test_helpers.rb
agilibox-1.3.5 lib/agilibox/test_helpers.rb
agilibox-1.3.4 lib/agilibox/test_helpers.rb
agilibox-1.3.3 lib/agilibox/test_helpers.rb
agilibox-1.3.2 lib/agilibox/test_helpers.rb
agilibox-1.3.1 lib/agilibox/test_helpers.rb