Sha256: 4178f3b5cbc93b032607b64bf9b3d148df89d1c1e5a1511e66642d264b2d7530
Contents?: true
Size: 683 Bytes
Versions: 3
Compression:
Stored size: 683 Bytes
Contents
require File.expand_path('./rails_app/test/test_helper', File.dirname(__FILE__)) require File.expand_path('../lib/generators/layout/layout_generator', File.dirname(__FILE__)) class LayoutGeneratorTest < Rails::Generators::TestCase tests LayoutGenerator destination File.expand_path("./tmp", File.dirname(__FILE__)) def setup FileUtils.rm_rf(File.expand_path("./tmp/.", File.dirname(__FILE__))) end test "Assert all files are properly created" do run_generator %w(simple) assert_directory "public/simple/images" assert_file "public/simple/styles.css" assert_file "public/simple/index.html" assert_file "app/views/layouts/simple.html.erb" end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
simple-layout-0.1.2 | test/test_layout_generator.rb |
simple-layout-0.1.1 | test/test_layout_generator.rb |
simple-layout-0.1.0 | test/test_layout_generator.rb |