Sha256: 315e1f634a68a249151a73dc2448aa98ced9498efa8ed48ff401412b119f848f

Contents?: true

Size: 623 Bytes

Versions: 12

Compression:

Stored size: 623 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
  
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
ubiquo-0.2.7 test/ubiquo/generator_test.rb
ubiquo-0.1.12 test/ubiquo/generator_test.rb
ubiquo-0.1.9 test/ubiquo/generator_test.rb
ubiquo-0.1.8 test/ubiquo/generator_test.rb
ubiquo-0.1.7 test/ubiquo/generator_test.rb
ubiquo-0.1.6 test/ubiquo/generator_test.rb
ubiquo-0.1.5 test/ubiquo/generator_test.rb
ubiquo-0.1.4 test/ubiquo/generator_test.rb
ubiquo-0.1.3 test/ubiquo/generator_test.rb
ubiquo-0.1.2 test/ubiquo/generator_test.rb
ubiquo-0.1.1 test/ubiquo/generator_test.rb
ubiquo-0.1.0 test/ubiquo/generator_test.rb