summaryrefslogtreecommitdiffstats
path: root/build/test-build-script.xml
blob: fc02e3999a8027926c0d0e5bcf2b1ad4aab2794f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
pre { line-height: 125%; }
td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
.highlight .hll { background-color: #ffffcc }
.highlight .c { color: #888888 } /* Comment */
.highlight .err { color: #a61717; background-color: #e3d2d2 } /* Error */
.highlight .k { colo
<!-- ========================================================================= -->
<!-- Copyright (c) 2005 Contributors                                                         -->
<!-- All rights reserved.                                                      -->
<!-- This program and the accompanying materials are made available            -->
<!-- under the terms of the Eclipse Public License v1.0                         -->
<!-- which accompanies this distribution and is available at                   -->
<!-- http://www.eclipse.org/legal/epl-v10.html                                 -->
<!--                                                                           -->
<!-- Contributors: (See CVS checkin's)                                         -->
<!--     Wes Isberg     initial implementation                                 -->
<!-- ========================================================================= -->

<project name="test-build-script" default="all" basedir=".">

    <property name="modules.dir" location="${basedir}/.."/>
    
    <import file="${modules.dir}/build/build-properties.xml"/>

	<target name="all" depends="failures"/>
	
	<target name="failures" depends="init-properties">
	    <delete file="${aj.failure.file}"/>
	    <echo message="-> no false negative (no file)"/>
	    <antcall target="fail-if-failures"/>
	    
	    <touch file="${aj.failure.file}"/>
	    <echo message="-> no false negative (empty file)"/>
	    <antcall target="fail-if-failures"/>

	    <echo message="-> no false negative (unset Property)"/>
	    <report-if-failed text="not error text" property="unsetProperty"/>
	    <antcall target="fail-if-failures"/>

	    <echo message="-> true negative (set Property)"/>
	    <property name="setProperty" value="."/>
	    <report-if-failed text="error text" property="setProperty"/>
	    <antcall target="fail-if-failures"/>

	    <loadfile property="emit" srcfile="${aj.failure.file}"/>
	    <echo message="-> file contents: ${emit}"/>
    </target>
</project>
>News.find(1).comments.size @request.session[:user_id] = 2 delete :destroy, :id => 1, :comment_id => 2 assert_redirected_to '/news/1' assert_nil Comment.find_by_id(2) assert_equal comments_count - 1, News.find(1).comments.size end end