Sha256: 2f69162c058773d897c83b21f2a9e61860739536a338270cf49c34555dda1c2a
Contents?: true
Size: 636 Bytes
Versions: 6
Compression:
Stored size: 636 Bytes
Contents
require File.dirname(__FILE__) + '/test_helper' class TestGenerator < Test::Unit::TestCase context "the base generator" do setup do @app = App.new @generator = Generator.build(@app, Rails) end should "raise an exception if it tries to build a generator for a backend that doesn't exist." do assert_raise RuntimeError do Generator.build(@app, Object) end end should "have a generate method" do assert @generator.respond_to?(:generate) end should_eventually "have a generate_all method" do assert Generator.respond_to?(:generate_all) end end end
Version data entries
6 entries across 6 versions & 1 rubygems