Sha256: 3ca3dd36f12af6e48bb7c29bfaa9a2bf99b80aba9f9a582b3981bd78ecb8e250
Contents?: true
Size: 1.03 KB
Versions: 5
Compression:
Stored size: 1.03 KB
Contents
require 'spec_helper' describe Redde::Generators::LayoutGenerator do include GeneratorSpec::TestCase destination File.expand_path("../../../tmp", __FILE__) arguments %w(something) before(:all) do prepare_destination run_generator end after(:all) do FileUtils.rm_rf 'tmp' end describe "layout" do it "Generates admin and login layouts with js and css" do # check layouts assert_file "app/views/layouts/admin.html.haml" assert_file "app/views/layouts/login.html.haml" # check shared assert_file "app/views/admin/base/_launchbar.html.haml" assert_file "app/views/admin/base/_sidebar.html.haml" assert_file "app/views/admin/base/_header.html.haml" # check js and css assert_file "app/assets/javascripts/admin.js" assert_file "app/assets/stylesheets/admin.scss" #check images assert_directory "app/assets/images/admin" assert_directory "app/assets/javascripts/admin" assert_directory "app/assets/stylesheets/admin" end end end
Version data entries
5 entries across 5 versions & 1 rubygems