Sha256: 8b56cce57e287ee3439ed720c639fd913cd4a1329691437acdce7ed18c3147ab
Contents?: true
Size: 710 Bytes
Versions: 1
Compression:
Stored size: 710 Bytes
Contents
require "spec_helper" describe TestGenerator, "using custom matcher" do include GeneratorSpec::GeneratorExampleGroup destination File.expand_path("../../tmp", __FILE__) before do prepare_destination run_generator end specify do destination_root.should have_structure { no_file "test.rb" directory "config" do directory "initializers" do file "test.rb" do contains "# Initializer" end end end directory "db" do directory "migrate" do file "123_create_tests.rb" migration "create_tests" do contains "class TestMigration" end end end } end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
generator_spec-0.0.3 | spec/generator_spec/matcher_spec.rb |