1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/railties/test/generators/stylesheets_generator_test.rb

18 lines
472 B
Ruby
Raw Normal View History

require 'generators/generators_test_helper'
require '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
2009-07-01 16:06:05 -04:00
def test_stylesheets_are_not_deleted_on_revoke
run_generator
run_generator [], :behavior => :revoke
2009-07-01 16:06:05 -04:00
assert_file "public/stylesheets/scaffold.css"
end
end