# Code Generated by ZenTest v. 3.4.0
#                 classname: asrt / meth =  ratio%
#         UniformLinkHelper:    0 /    7 =   0.00%

require File.dirname(__FILE__) + '/../test_helper'
require 'mocha'

class UniformLinkHelperTest <  HelperTestCase

  include UniformLinkHelper
  include ApplicationHelper

  def test_add
    assert_match "/helpertestcase/new", add(:controller => 'HelperTestCase')
  end

  # def test_approve
  #   record = stub(:to_param => 5)
  #   assert_match '/helpertestcase/approve/5', approve(record)
  # end
  # 
  # def test_cancel
  #   assert_match '/helpertestcase/cancel', cancel()
  # end

  def test_create_or_save
    new_record = stub(:new_record? => true)
    assert_match "Create this Mocha/Mock", create_or_save(new_record)
  end

  def test_create_or_save_existing_record
    record = stub(:new_record? => false)
    assert_match "Save this Mocha/Mock", create_or_save(record)
  end

  def test_create_or_save_with_label
    new_record = stub(:new_record? => true)
    assert_match "Create this Bird", create_or_save(new_record, "Bird")
  end

  def test_create_or_save_existing_record_with_label
    record = stub(:new_record? => false)
    assert_match "Save this Cat", create_or_save(record, "Cat")
  end
  
  # def test_edit
  #   record = stub(:to_param => 5)
  #   assert_match '/helpertestcase/edit/5', edit(record)
  # end
  # 
  # def test_hold
  #   record = stub(:to_param => 5)
  #   assert_match '/helpertestcase/hold/5', hold(record)
  # end
  # 
  # def test_remove
  #   record = stub(:to_param => 5)
  #   assert_match '/helpertestcase/remove/5', remove(record)
  # end
end
