summaryrefslogtreecommitdiffstats
path: root/test/unit/testing_test.rb
diff options
context:
space:
mode:
authorEric Davis <edavis@littlestreamsoftware.com>2009-10-17 20:37:23 +0000
committerEric Davis <edavis@littlestreamsoftware.com>2009-10-17 20:37:23 +0000
commit4425acafff80f5a0f19df013d1fdfdb500e1da4e (patch)
tree1a213f1c2373deb8e81a8a22cfdfe9047a716a4f /test/unit/testing_test.rb
parentafd2d4afc660cee2b0741233634ca8faf5539135 (diff)
downloadredmine-4425acafff80f5a0f19df013d1fdfdb500e1da4e.tar.gz
redmine-4425acafff80f5a0f19df013d1fdfdb500e1da4e.zip
Setup shoulda for testing. (#4005)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2925 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit/testing_test.rb')
-rw-r--r--test/unit/testing_test.rb40
1 files changed, 40 insertions, 0 deletions
diff --git a/test/unit/testing_test.rb b/test/unit/testing_test.rb
new file mode 100644
index 000000000..82eb9ed56
--- /dev/null
+++ b/test/unit/testing_test.rb
@@ -0,0 +1,40 @@
+# redMine - project management software
+# Copyright (C) 2006-2009 Jean-Philippe Lang
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License
+# as published by the Free Software Foundation; either version 2
+# of the License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+
+require File.dirname(__FILE__) + '/../test_helper'
+
+# Test case that checks that the testing infrastructure is setup correctly.
+class TestingTest < ActiveSupport::TestCase
+ def test_working
+ assert true
+ end
+
+ test "Rails 'test' case syntax" do
+ assert true
+ end
+
+ should "work with shoulda" do
+ assert true
+ end
+
+ context "works with a context" do
+ should "work" do
+ assert true
+ end
+ end
+
+end