Sha256: efe31d154cff045328ed212e2d5c82691371e83352259d705f1b1cca5e9a806d
Contents?: true
Size: 492 Bytes
Versions: 4
Compression:
Stored size: 492 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 snippet.should == expected end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
tdiary-contrib-4.0.2.1 | spec/gist_spec.rb |
tdiary-contrib-4.0.2 | spec/gist_spec.rb |
tdiary-contrib-3.2.2.20130614 | spec/gist_spec.rb |
tdiary-contrib-3.2.2.20130518 | spec/gist_spec.rb |