changelog shortlog tags changeset manifest revisions annotate raw

vendor/plugins/rspec/stories/resources/test/test_case_with_should_methods.rb

changeset 15: 64acf98d15f4
author: moriq@moriq.com
date: Mon Mar 10 10:12:58 2008 +0900 (16 years ago)
permissions: -rw-r--r--
description: add plugins rspec
1$:.push File.join(File.dirname(__FILE__), *%w[.. .. .. lib])
2require 'test/unit'
3require 'spec'
4require 'spec/interop/test'
5
6class MySpec < Test::Unit::TestCase
7 def should_pass_with_should
8 1.should == 1
9 end
10
11 def should_fail_with_should
12 1.should == 2
13 end
14
15 def should_pass_with_assert
16 assert true
17 end
18
19 def should_fail_with_assert
20 assert false
21 end
22
23 def test
24 raise "This is not a real test"
25 end
26
27 def test_ify
28 raise "This is a real test"
29 end
30end