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-2.0.0 lib/agilibox/test_helpers.rb
agilibox-1.11.0 lib/agilibox/test_helpers.rb
agilibox-1.10.5 lib/agilibox/test_helpers.rb
agilibox-1.10.2 lib/agilibox/test_helpers.rb
agilibox-1.10.1 lib/agilibox/test_helpers.rb
agilibox-1.10.0 lib/agilibox/test_helpers.rb
agilibox-1.9.20 lib/agilibox/test_helpers.rb
agilibox-1.9.19 lib/agilibox/test_helpers.rb
agilibox-1.9.18 lib/agilibox/test_helpers.rb
agilibox-1.9.17 lib/agilibox/test_helpers.rb
agilibox-1.9.16 lib/agilibox/test_helpers.rb
agilibox-1.9.15 lib/agilibox/test_helpers.rb
agilibox-1.9.14 lib/agilibox/test_helpers.rb
agilibox-1.9.13 lib/agilibox/test_helpers.rb
agilibox-1.9.12 lib/agilibox/test_helpers.rb
agilibox-1.9.11 lib/agilibox/test_helpers.rb
agilibox-1.9.10 lib/agilibox/test_helpers.rb
agilibox-1.9.9 lib/agilibox/test_helpers.rb
agilibox-1.9.8 lib/agilibox/test_helpers.rb
agilibox-1.9.7 lib/agilibox/test_helpers.rb