Sha256: 97355ebd4fdcb648fe8fb3bd96f50bb5b0a85018877daaf3a8c8ef779d576f89

Contents?: true

Size: 502 Bytes

Versions: 9

Compression:

Stored size: 502 Bytes

Contents

# -*- coding: utf-8 -*-
require File.expand_path('../plugin_helper', __FILE__)

describe "bq plugin w/" do
	def setup_bq_plugin( mode )
		fake_plugin(:bq) { |plugin|
			plugin.mode = mode
		}
	end

	describe "src only." do
		before do
			plugin = setup_bq_plugin('lateste')
			@body_snippet = plugin.bq('foo')
		end

		it { expect(@body_snippet).to eq(expected_html_body(
				:src => 'foo')) }
	end

	def expected_html_body(options)
		%|<blockquote>\n<p>#{options[:src]}</p>\n</blockquote>\n|
	end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
tdiary-4.2.1 vendor/bundle/ruby/2.3.0/gems/tdiary-4.2.0/spec/plugin/bq_spec.rb
tdiary-4.2.0 spec/plugin/bq_spec.rb
tdiary-4.1.3 spec/plugin/bq_spec.rb
tdiary-4.1.2 spec/plugin/bq_spec.rb
tdiary-4.1.1 spec/plugin/bq_spec.rb
tdiary-4.1.0 spec/plugin/bq_spec.rb
tdiary-4.1.0.20141126 spec/plugin/bq_spec.rb
tdiary-4.0.5.1 spec/plugin/bq_spec.rb
tdiary-4.0.5 spec/plugin/bq_spec.rb