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-5.3.0 spec/gist_spec.rb
tdiary-contrib-5.2.4 spec/gist_spec.rb
tdiary-contrib-5.2.3 spec/gist_spec.rb
tdiary-contrib-5.2.2 spec/gist_spec.rb
tdiary-contrib-5.2.1 spec/gist_spec.rb
tdiary-contrib-5.2.0 spec/gist_spec.rb
tdiary-contrib-5.1.7 spec/gist_spec.rb
tdiary-contrib-5.1.6 spec/gist_spec.rb
tdiary-5.1.6 vendor/bundle/ruby/2.7.0/gems/tdiary-5.1.5/vendor/bundle/ruby/3.0.0/gems/tdiary-contrib-5.1.4/spec/gist_spec.rb
tdiary-5.1.6 vendor/bundle/ruby/2.7.0/bundler/gems/tdiary-contrib-d1e41204db13/spec/gist_spec.rb
tdiary-contrib-5.1.5 spec/gist_spec.rb
tdiary-5.1.5 vendor/bundle/ruby/3.0.0/gems/tdiary-contrib-5.1.4/spec/gist_spec.rb
tdiary-contrib-5.1.4 spec/gist_spec.rb
tdiary-contrib-5.1.3 spec/gist_spec.rb
tdiary-contrib-5.1.2 spec/gist_spec.rb
tdiary-contrib-5.1.1 spec/gist_spec.rb
tdiary-contrib-5.1.0 spec/gist_spec.rb
tdiary-contrib-5.0.13 spec/gist_spec.rb
tdiary-contrib-5.0.12 spec/gist_spec.rb
tdiary-contrib-5.0.11 spec/gist_spec.rb