Sha256: e1a19e4b6647a756ef4cf2aed6cb4e489defd60077f63c26a4bafb72a887f481

Contents?: true

Size: 641 Bytes

Versions: 6

Compression:

Stored size: 641 Bytes

Contents

require 'webmock/minitest'

module Workarea
  module Blog
    module StubWordpressAssets
      extend ActiveSupport::Concern

      included { setup :stub_wordpress_assets }

      def stub_wordpress_assets
        stub_request(:get, 'https://testingwordpressexports.files.wordpress.com/2018/11/person-smartphone-office-table.jpeg')
          .to_return(body: 'abc', headers: { 'Content-Type': /image\/.+/ })

        stub_request(:get, 'https://testingwordpressexports.files.wordpress.com/2018/11/person-smartphone-office-table2.jpeg')
          .to_return(body: 'abc', headers: { 'Content-Type': /image\/.+/ })
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
workarea-blog-3.5.2 test/support/workarea/blog/stub_wordpress_assets.rb
workarea-blog-3.5.1 test/support/workarea/blog/stub_wordpress_assets.rb
workarea-blog-3.5.0 test/support/workarea/blog/stub_wordpress_assets.rb
workarea-blog-3.4.9 test/support/workarea/blog/stub_wordpress_assets.rb
workarea-blog-3.4.8 test/support/workarea/blog/stub_wordpress_assets.rb
workarea-blog-3.4.7 test/support/workarea/blog/stub_wordpress_assets.rb