Permalink
Browse files

Simple tests for assert_same

  • Loading branch information...
1 parent 19b3c28 commit 7a906aa88ac3258ab4cca3c6325c43d69ed1c93b @adymo adymo committed Aug 17, 2011
Showing with 19 additions and 0 deletions.
  1. +18 −0 test/assert_same_test.rb
  2. +1 −0 test/logs/assert_same_with_files.log.ref
View
18 test/assert_same_test.rb
@@ -0,0 +1,18 @@
+# Copyright (c) 2011 Pluron, Inc.
+
+require 'test/unit'
+require 'lib/assert_same'
+
+class AssertSameTest < Test::Unit::TestCase
+
+ def test_basic_assert_same
+ assert_same "foo", <<-END
+ foo
+ END
+ end
+
+ def test_assert_same_with_files
+ assert_same "foo", :log => 'test/logs/assert_same_with_files.log.ref'
+ end
+
+end
View
1 test/logs/assert_same_with_files.log.ref
@@ -0,0 +1 @@
+foo

0 comments on commit 7a906aa

Please sign in to comment.