Sha256: af4dc705bffcae05d0b79660cc2263392e522ac8d40e83ac7d4a1e8ad1676312
Contents?: true
Size: 497 Bytes
Versions: 48
Compression:
Stored size: 497 Bytes
Contents
$:.unshift(File.dirname(__FILE__)) require 'spec_helper' describe "gist plugin" do DUMMY_GIST_ID = 1234567890 it 'should render javascript tag with specified gist-id' do plugin = fake_plugin(:gist) snippet = plugin.gist(DUMMY_GIST_ID) expected = (<<-EOS).chomp <div class="gist_plugin"><script src="http://gist.github.com/1234567890.js"></script> <noscript><a href="http://gist.github.com/1234567890">gist:1234567890</a></noscript></div> EOS expect(snippet).to eq(expected) end end
Version data entries
48 entries across 42 versions & 2 rubygems