mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
ec8e747960
This reverts commit ea2c5fa804
.
Conflicts:
railties/lib/rails/generators/rails/app/templates/app/views/layouts/application.html.erb
railties/test/generators/app_generator_test.rb
17 lines
478 B
Ruby
17 lines
478 B
Ruby
require 'generators/generators_test_helper'
|
|
require 'rails/generators/rails/stylesheets/stylesheets_generator'
|
|
|
|
class StylesheetsGeneratorTest < Rails::Generators::TestCase
|
|
include GeneratorsTestHelper
|
|
|
|
def test_copy_stylesheets
|
|
run_generator
|
|
assert_file "public/stylesheets/scaffold.css"
|
|
end
|
|
|
|
def test_stylesheets_are_not_deleted_on_revoke
|
|
run_generator
|
|
run_generator [], :behavior => :revoke
|
|
assert_file "public/stylesheets/scaffold.css"
|
|
end
|
|
end
|