Sha256: 3a6305efe5bd7ef3c99061e845d58b935013de86963d21f7e8d2f8c511e439f2
Contents?: true
Size: 531 Bytes
Versions: 1
Compression:
Stored size: 531 Bytes
Contents
# frozen_string_literal: true require "spec_helper" describe Gistribute do describe "::parse_id" do %i[pub_single_file sec_single_file].each do |gist| id = GIST_IDS[gist] [ "https://gist.github.com/username/#{id}", "https://gist.github.com/#{id}", id ].each do |link| context "when given the String: #{link}" do it "parses down to the Gist ID" do expect(described_class.parse_id(link)).to eq(id) end end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
gistribute-0.3.1 | spec/gistribute_spec.rb |