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.9.6 lib/agilibox/test_helpers.rb
agilibox-1.9.5 lib/agilibox/test_helpers.rb
agilibox-1.9.4 lib/agilibox/test_helpers.rb
agilibox-1.9.3 lib/agilibox/test_helpers.rb
agilibox-1.9.1 lib/agilibox/test_helpers.rb
agilibox-1.9.0 lib/agilibox/test_helpers.rb
agilibox-1.8.0 lib/agilibox/test_helpers.rb
agilibox-1.7.4 lib/agilibox/test_helpers.rb
agilibox-1.7.3 lib/agilibox/test_helpers.rb
agilibox-1.7.2 lib/agilibox/test_helpers.rb
agilibox-1.7.1 lib/agilibox/test_helpers.rb
agilibox-1.7.0 lib/agilibox/test_helpers.rb
agilibox-1.6.2 lib/agilibox/test_helpers.rb
agilibox-1.6.1 lib/agilibox/test_helpers.rb
agilibox-1.6.0 lib/agilibox/test_helpers.rb
agilibox-1.5.13 lib/agilibox/test_helpers.rb
agilibox-1.5.12 lib/agilibox/test_helpers.rb
agilibox-1.5.11 lib/agilibox/test_helpers.rb
agilibox-1.5.10 lib/agilibox/test_helpers.rb
agilibox-1.5.9 lib/agilibox/test_helpers.rb