Sha256: b8e308b49c39e748149b6e3d43d7dbd1a31b5b80cec5a07c6639da17bcd927d7
Contents?: true
Size: 1001 Bytes
Versions: 34
Compression:
Stored size: 1001 Bytes
Contents
require File.dirname(__FILE__) + '/../helper.rb' class TestGenerator < Test::Unit::TestCase def test_should_be_able_to_build_a_template skeleton = File.join(File.dirname(__FILE__), "../fixtures", "template.erb") opts = Options.new(%w[ --edge --sqlite --minimal myapp ]) rails_template = Generator.build_template(opts, skeleton) assert_kind_of String, rails_template assert_match 'myapp', rails_template assert_match 'choosen_adapter = "sqlite"', rails_template assert_match 'choosen_plugin_set = "minimal"', rails_template assert_match 'ubiquo_branch = nil', rails_template end def test_should_generate_expected_template_from_custom_profile skeleton = File.join(File.dirname(__FILE__), "../fixtures", "template.erb") opts = Options.new(%w[ --custom ubiquo_media myapp ]) rails_template = Generator.build_template(opts, skeleton) assert_kind_of String, rails_template assert_match 'choosen_plugin_set = "custom"', rails_template end end
Version data entries
34 entries across 34 versions & 1 rubygems