2009-07-01 15:23:30 -04:00
|
|
|
require 'generators/generators_test_helper'
|
2010-01-18 07:44:32 -05:00
|
|
|
require 'generators/rails/stylesheets/stylesheets_generator'
|
2009-07-01 15:23:30 -04:00
|
|
|
|
2010-01-18 18:07:11 -05:00
|
|
|
class StylesheetsGeneratorTest < Rails::Generators::TestCase
|
|
|
|
include GeneratorsTestHelper
|
|
|
|
|
2009-07-01 15:23:30 -04:00
|
|
|
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
|
2010-01-03 10:34:32 -05:00
|
|
|
run_generator [], :behavior => :revoke
|
2009-07-01 16:06:05 -04:00
|
|
|
assert_file "public/stylesheets/scaffold.css"
|
|
|
|
end
|
2009-07-01 15:23:30 -04:00
|
|
|
end
|