Mercurial > hg > soundsoftware-site
view test/functional/auto_completes_controller_test.rb @ 107:361f1e8b2e23 luisf
Feature #1:
Fixed the collection_select variable issue
User edit view: removed wiki toolbar and description from the description text area in the user;
User edit view: added institutions collection select;
User show view: institution name now visible.
Users_controller: fixed a bug retrieving the institution name
author | luisf |
---|---|
date | Fri, 17 Dec 2010 11:18:51 +0000 |
parents | 1d32c0a0efbf |
children | af80e5618e9b |
line wrap: on
line source
require File.dirname(__FILE__) + '/../test_helper' class AutoCompletesControllerTest < ActionController::TestCase fixtures :all def test_issues_should_not_be_case_sensitive get :issues, :project_id => 'ecookbook', :q => 'ReCiPe' assert_response :success assert_not_nil assigns(:issues) assert assigns(:issues).detect {|issue| issue.subject.match /recipe/} end def test_issues_should_return_issue_with_given_id get :issues, :project_id => 'subproject1', :q => '13' assert_response :success assert_not_nil assigns(:issues) assert assigns(:issues).include?(Issue.find(13)) end end