:attachments => {'1' => {'file' => uploaded_test_file('testfile.txt', 'text/plain')}}
assert_redirected_to :action => 'show', :id => '1'
assert_equal '1 file(s) could not be saved.', flash[:warning]
-
- end if Object.const_defined?(:Mocha)
+ end
def test_put_update_with_no_change
issue = Issue.find(1)
log_user('newuser', 'newpass')
end
- if Object.const_defined?(:Mocha)
-
def test_onthefly_registration
# disable registration
Setting.self_registration = '0'
assert_not_equal sid, session[:session_id], "logout should reset session"
assert_nil session[:user_id]
end
-
- else
- puts 'Mocha is missing. Skipping tests.'
- end
end