Guest User

Untitled

a guest
Apr 25th, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. require 'test_helper'
  2.  
  3. class ObjectsHelperTest < ActionView::TestCase
  4. test "link_to_archive should return a link linked to archive_object_path" do
  5. p = Factory(:proposal, :archived => false)
  6. tag = link_to_archive p
  7. assert_tag :tag => :a, :attributes => { :href => archive_object_path(p) }
  8. end
  9. end
Add Comment
Please, Sign In to add comment