require 'spec_helper' describe Cocoon do class TestClass < ActionView::Base end subject {TestClass.new} it { should respond_to(:link_to_add_association) } it { should respond_to(:link_to_remove_association) } end