mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-28 21:08:48 +01:00
get tests running again
This commit is contained in:
parent
b28de88f4d
commit
4ed5567885
4 changed files with 5 additions and 5 deletions
|
|
@ -358,7 +358,7 @@ class TodosControllerTest < ActionController::TestCase
|
|||
"show_from(1i)"=>"", "show_from(2i)"=>"", "show_from(3i)"=>"",
|
||||
"project_id"=>"1",
|
||||
"notes"=>"test notes", "description"=>"test_mobile_create_action", "state"=>"0"}}
|
||||
assert_redirected_to '/m'
|
||||
assert_redirected_to '/mobile'
|
||||
end
|
||||
|
||||
def test_mobile_create_action_renders_new_template_when_save_fails
|
||||
|
|
|
|||
|
|
@ -52,7 +52,7 @@ class UsersControllerTest < ActionController::TestCase
|
|||
def test_destroy_user
|
||||
login_as :admin_user
|
||||
@no_users_before = User.find(:all).size
|
||||
xhr :post, :destroy, :id => users(:ldap_user).to_param
|
||||
xhr :post, :destroy, :id => users(:ldap_user).id.to_param
|
||||
assert_rjs :page, "user-3", :remove
|
||||
assert_equal @no_users_before-1, User.find(:all).size
|
||||
end
|
||||
|
|
|
|||
|
|
@ -84,7 +84,7 @@ class UsersXmlApiTest < ActionController::IntegrationTest
|
|||
end
|
||||
|
||||
def test_get_user_as_xml
|
||||
get "/users/#{users(:other_user).login}.xml", {}, basic_auth_headers()
|
||||
get "/users/#{users(:other_user).id}.xml", {}, basic_auth_headers()
|
||||
assert_response :success
|
||||
assert_tag :tag => "user"
|
||||
assert_no_tag :tag => "password"
|
||||
|
|
@ -104,4 +104,4 @@ class UsersXmlApiTest < ActionController::IntegrationTest
|
|||
assert_response_and_body 404, "Expected post format is valid xml like so: <request><login>username</login><password>abc123</password></request>."
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
require File.dirname(__FILE__) + '/../test_helper'
|
||||
|
||||
class MessageGatewayTest < ActiveSupport::TestCase
|
||||
fixtures :users, :contexts
|
||||
fixtures :users, :contexts, :todos
|
||||
|
||||
def setup
|
||||
@user = users(:sms_user)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue