rspec 0.3.2 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -5,15 +5,15 @@ require 'spec'
5
5
  class PassingCon < Spec::Context
6
6
 
7
7
  def ex1
8
- true.should_be_true
8
+ true.should.be true
9
9
  end
10
10
 
11
11
  def ex2
12
- true.should_be_true
12
+ true.should.be true
13
13
  end
14
14
 
15
15
  def ex3
16
- true.should_be_true
16
+ true.should.be true
17
17
  end
18
18
 
19
19
  end
@@ -22,15 +22,15 @@ end
22
22
  class FailingCon < Spec::Context
23
23
 
24
24
  def fail1
25
- false.should_be_true
25
+ false.should.be true
26
26
  end
27
27
 
28
28
  def fail2
29
- false.should_be_true
29
+ false.should.be true
30
30
  end
31
31
 
32
32
  def fail3
33
- false.should_be_true
33
+ false.should.be true
34
34
  end
35
35
 
36
36
  end
@@ -13,7 +13,7 @@ class MockTest < Test::Unit::TestCase
13
13
  begin
14
14
  @mock.__verify
15
15
  rescue Spec::Exceptions::MockExpectationError => e
16
- e.message.should_equal "./test/mock_test.rb:11:in `test_should_report_line_number_of_expectaion_of_unreceived_message': Mock 'test mock' expected wont_happen(<x:String>, <3:Fixnum>) once, but received it 0 times"
16
+ e.message.should.equal "./test/mock_test.rb:11:in `test_should_report_line_number_of_expectaion_of_unreceived_message': Mock 'test mock' expected wont_happen(<x:String>, <3:Fixnum>) once, but received it 0 times"
17
17
  end
18
18
 
19
19
  end
@@ -74,8 +74,8 @@ class MockTest < Test::Unit::TestCase
74
74
 
75
75
  def test_should_use_block_for_expectation_if_provided
76
76
  @mock.should_receive(:random_call) do | a, b |
77
- a.should_equal("a")
78
- b.should_equal("b")
77
+ a.should.equal("a")
78
+ b.should.equal("b")
79
79
  "booh"
80
80
  end
81
81
  assert_equal("booh", @mock.random_call("a", "b"))
@@ -83,7 +83,7 @@ class MockTest < Test::Unit::TestCase
83
83
  end
84
84
 
85
85
  def test_failing_expectation_block_throws
86
- @mock.should_receive(:random_call) {| a | a.should_be_true}
86
+ @mock.should_receive(:random_call) {| a | a.should.be true}
87
87
  assert_raise(Spec::Exceptions::MockExpectationError) do
88
88
  @mock.random_call false
89
89
  end
@@ -5,15 +5,15 @@ require 'spec'
5
5
  class PassingCon < Spec::Context
6
6
 
7
7
  def ex1
8
- true.should_be_true
8
+ true.should.be true
9
9
  end
10
10
 
11
11
  def ex2
12
- true.should_be_true
12
+ true.should.be true
13
13
  end
14
14
 
15
15
  def ex3
16
- true.should_be_true
16
+ true.should.be true
17
17
  end
18
18
 
19
19
  end
@@ -22,15 +22,15 @@ end
22
22
  class FailingCon < Spec::Context
23
23
 
24
24
  def fail1
25
- false.should_be_true
25
+ false.should.be true
26
26
  end
27
27
 
28
28
  def fail2
29
- false.should_be_true
29
+ false.should.be true
30
30
  end
31
31
 
32
32
  def fail3
33
- false.should_be_true
33
+ false.should.be true
34
34
  end
35
35
 
36
36
  end
metadata CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.8.11
3
3
  specification_version: 1
4
4
  name: rspec
5
5
  version: !ruby/object:Gem::Version
6
- version: 0.3.2
7
- date: 2006-01-20 00:00:00 -08:00
6
+ version: 0.4.0
7
+ date: 2006-02-28 00:00:00 -08:00
8
8
  summary: Behaviour Specification Framework for Ruby
9
9
  require_paths:
10
10
  - lib
@@ -44,12 +44,24 @@ files:
44
44
  - lib/spec/exceptions.rb
45
45
  - lib/spec/expectations.rb
46
46
  - lib/spec/gui_runner.rb
47
+ - lib/spec/have_helper.rb
48
+ - lib/spec/instance_helper.rb
49
+ - lib/spec/instance_negator.rb
50
+ - lib/spec/kind_helper.rb
51
+ - lib/spec/kind_negator.rb
47
52
  - lib/spec/mock.rb
53
+ - lib/spec/respond_helper.rb
54
+ - lib/spec/respond_negator.rb
55
+ - lib/spec/should_base.rb
56
+ - lib/spec/should_helper.rb
57
+ - lib/spec/should_negator.rb
48
58
  - lib/spec/text_runner.rb
59
+ - test/collection_owner.rb
49
60
  - test/context_fixtures_test.rb
50
61
  - test/context_run_test.rb
51
62
  - test/dsl_test.rb
52
63
  - test/error_reporting_test.rb
64
+ - test/expectations_for_should_have_test.rb
53
65
  - test/expectations_test.rb
54
66
  - test/get_classes.rb
55
67
  - test/gui_runner_test.rb