mirror of
https://github.com/we-promise/sure.git
synced 2026-07-27 12:12:13 +00:00
17 lines
488 B
Ruby
17 lines
488 B
Ruby
require "test_helper"
|
|
|
|
class Provider::GithubTest < ActiveSupport::TestCase
|
|
test "release notes cache is scoped to the configured repository" do
|
|
provider = Provider::Github.new
|
|
|
|
Rails.cache.expects(:fetch)
|
|
.with("latest_github_release_notes/we-promise/sure", expires_in: Provider::Github::CACHE_TTL)
|
|
.yields
|
|
.returns(nil)
|
|
|
|
provider.client.expects(:releases).with("we-promise/sure").returns([])
|
|
|
|
assert_nil provider.fetch_latest_release_notes
|
|
end
|
|
end
|