Sha256: 080c4bc148e494a05af052696dd0f3b8e48066631418f5af0a2db583dc3827b8
Contents?: true
Size: 588 Bytes
Versions: 1
Compression:
Stored size: 588 Bytes
Contents
# frozen_string_literal: true RSpec.shared_context "without cached response" do let(:cache) { null_cache } before do subject.cache = cache end def null_cache double("TwitterJekyll::NullCache", read: nil, write: nil) end end RSpec.shared_context "with a normal request and response" do let(:arguments) { "https://twitter.com/twitter_user/status/12345" } let(:response) { { html: "<p>tweet html</p>" } } before do allow(api_client).to receive(:fetch).and_return(response) allow(TwitterJekyll::ApiClient).to receive(:new).and_return(api_client) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
jekyll-twitter-plugin-2.0.0 | spec/support/shared_contexts.rb |