Skip to content
Browse files

fixing tests

  • Loading branch information...
1 parent 8b68cbf commit 5a27e951768fc17f0e27e094c66ae84d50781d55 @leogalmeida leogalmeida committed Jun 3, 2013
View
4 test/lib/generators/slim/controller_generator_test.rb
@@ -11,7 +11,7 @@ class Slim::Generators::ControllerGeneratorTest < Rails::Generators::TestCase
test "should invoke template engine" do
run_generator
- assert_file File.join "app", "views", "account", "foo.html.slim", %r(app/views/account/foo\.html\.slim)
- assert_file File.join "app", "views", "account", "bar.html.slim", %r(app/views/account/bar\.html\.slim)
+ assert_file File.join("app", "views", "account", "foo.html.slim"), %r(app/views/account/foo\.html\.slim)
+ assert_file File.join("app", "views", "account", "bar.html.slim"), %r(app/views/account/bar\.html\.slim)
end
end
View
9 test/lib/generators/slim/scaffold_generator_test.rb
@@ -4,7 +4,7 @@
class Slim::Generators::ScaffoldGeneratorTest < Rails::Generators::TestCase
destination File.join(Rails.root)
tests Rails::Generators::ScaffoldGenerator
- arguments %w(product_line title:string price:integer --template-engine slim)
+ arguments %w(product_line title:string price:integer --template-engine slim --orm active-record)
setup :prepare_destination
setup :copy_routes
@@ -18,14 +18,9 @@ class Slim::Generators::ScaffoldGeneratorTest < Rails::Generators::TestCase
test "should revoke template engine" do
run_generator
- run_generator ["product_line"], :behavior => :revoke
+ run_generator ["product_line", "--orm", "active-record"], :behavior => :revoke
assert_no_file File.join "app", "views", "product_lines"
assert_no_file File.join "app", "views", "layouts", "product_lines.html.slim"
end
-
- test "should invoke form builder" do
- run_generator %w(product_line title:string price:integer --template-engine slim --form-builder some-form-builder)
- assert_no_file File.join "app", "views", "product_lines", "_form.html.slim"
- end
end

0 comments on commit 5a27e95

Please sign in to comment.
Something went wrong with that request. Please try again.