Sha256: 3b0d39b02daa98e48dd93dd537b20e64e7d8671880dbe99f9c669d565c8d60dc

Contents?: true

Size: 629 Bytes

Versions: 17

Compression:

Stored size: 629 Bytes

Contents

require File.expand_path('../test_helper', __FILE__)
require File.expand_path('../test_plugin_helper', __FILE__)

module EmptyRenderingTests
	def setup
		load_plugin('misc/plugin/weather.rb', language, binding)
		@weather = Weather.new
	end

	def test_empty_rendering_to_html
		assert_equal('', @weather.to_html)
	end

	def test_empty_rendering_to_i_html
		assert_equal('', @weather.to_i_html)
	end
end

class TestEmptyRenderingEn < TDiary::PluginTestCase
	include EmptyRenderingTests

	def language
		"en"
	end
end

class TestEmptyRenderingJa < TDiary::PluginTestCase
	include EmptyRenderingTests

	def language
		"ja"
	end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
tdiary-4.0.2 test/weather_test.rb
tdiary-4.0.1.20131102 test/weather_test.rb
tdiary-4.0.1.20130929 test/weather_test.rb
tdiary-4.0.1.20130903 test/weather_test.rb
tdiary-4.0.1 test/weather_test.rb
tdiary-4.0.0.20130826 test/weather_test.rb
tdiary-4.0.0 test/weather_test.rb
tdiary-3.2.2.20130727 test/weather_test.rb
tdiary-3.2.2.20130722 test/weather_test.rb
tdiary-3.2.2.20130720 test/weather_test.rb
tdiary-3.2.2.20130617 test/weather_test.rb
tdiary-3.2.2.20130614 test/weather_test.rb
tdiary-3.2.2.20130604 test/weather_test.rb
tdiary-3.2.2.20130527 test/weather_test.rb
tdiary-3.2.2.20130518 test/weather_test.rb
tdiary-3.2.2.20130508 test/weather_test.rb
tdiary-3.2.2.20130507 test/weather_test.rb