require "test_helper" class TodosHelpersTest < ActionView::TestCase include TodosHelper test "remote_edit_button" do html = remote_edit_button(todos(:call_bill)) assert_equal "\"Edit\"", html end test "remote_delete_menu" do html = remote_delete_menu_item(todos(:call_bill)) assert_equal "Delete", html end test "remote_delete_dependency" do todo = todos(:call_bill_gates_every_day) predecessor = todos(:call_bill) html = remote_delete_dependency(todo, predecessor) assert_equal "", html end test "remote_promote_to_project_menu_item" do html = remote_promote_to_project_menu_item(todos(:call_bill)) assert_equal "Make project", html end end