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

Version Path
tdiary-contrib-4.2.0 spec/gist_spec.rb
tdiary-contrib-4.1.3 spec/gist_spec.rb
tdiary-contrib-4.1.2 spec/gist_spec.rb
tdiary-contrib-4.1.1 spec/gist_spec.rb
tdiary-contrib-4.1.0 spec/gist_spec.rb
tdiary-contrib-4.0.5.1 spec/gist_spec.rb
tdiary-contrib-4.0.4 spec/gist_spec.rb
tdiary-contrib-4.0.3 spec/gist_spec.rb