mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-18 00:00:12 +01:00
11 lines
487 B
Ruby
11 lines
487 B
Ruby
|
|
require "test_helper"
|
||
|
|
|
||
|
|
class TodosHelpersTest < ActionView::TestCase
|
||
|
|
include TodosHelper
|
||
|
|
|
||
|
|
test "remote_edit_button" do
|
||
|
|
html = remote_edit_button(todos(:call_bill))
|
||
|
|
assert_equal "<a class=\"icon edit_item\" href=\"/todos/1/edit\" id=\"icon_edit_todo_1\" title=\"Edit the action 'Call Bill Gates to find out how much he makes per day'\"><img align=\"absmiddle\" alt=\"Edit\" class=\"edit_item\" id=\"edit_icon_todo_1\" src=\"/images/blank.png\" /></a>", html
|
||
|
|
end
|
||
|
|
end
|