require File.join(File.dirname(__FILE__), *%w[.. test_helper]) require 'action_view/test_case' class ViewHelperTest < ActionView::TestCase tests Apotomo::Rails::ViewHelper context "A widget state view" do setup do barn_controller! @cell = mouse_mock('mum') end teardown do Apotomo.js_framework = :prototype end should "respond to #link_to_event" do assert_dom_equal "Walk!", link_to_event("Walk!", :footsteps) end should "respond to #form_to_event" do assert_dom_equal "