test/generators/buildybuild/cms/cms_generator_test.rb in buildybuild-1.0.0 vs test/generators/buildybuild/cms/cms_generator_test.rb in buildybuild-1.1.0
- old
+ new
@@ -28,10 +28,10 @@
assert_file "app/views/pages/_form.html.haml", /f\.label :name/
end
test "routes are updated" do
#create the file in the test so we can insert into it.
- generator.create_file("config/routes.rb", "class Routes \n\n end")
+ generator.create_file("config/routes.rb", "class Routes \n\nend")
generator.add_routes
assert_file "config/routes.rb", /get "\/:slug", to: "pages#show", as: :slug/
end
end