flexmock 1.1.0 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
data/README.rdoc CHANGED
@@ -3,7 +3,7 @@
3
3
  FlexMock is a simple, but flexible, mock object library for Ruby unit
4
4
  testing.
5
5
 
6
- Version :: 1.1.0
6
+ Version :: 1.2.0
7
7
 
8
8
  = Links
9
9
 
@@ -0,0 +1,12 @@
1
+ # Auto configure for RSpec
2
+ #
3
+ # Just require 'flexmock/rspec/configure' to automatically configure
4
+ # RSpec to use flexmock.
5
+
6
+ if defined?(RSpec)
7
+ RSpec.configure do |config|
8
+ config.mock_with :flexmock
9
+ end
10
+ else
11
+ fail "Cannot auto-configure flexmock for ancient versions of rspec"
12
+ end
@@ -2,7 +2,7 @@ class FlexMock
2
2
  module Version
3
3
  NUMBERS = [
4
4
  MAJOR = 1,
5
- MINOR = 1,
5
+ MINOR = 2,
6
6
  BUILD = 0,
7
7
  ]
8
8
  end
@@ -101,7 +101,7 @@ class AssertSpyCalledTest < Test::Unit::TestCase
101
101
  end
102
102
 
103
103
  def test_assert_errors_say_no_calls_made
104
- ex = assert_fails(/No messages have been received/) do
104
+ assert_fails(/No messages have been received/) do
105
105
  assert_spy_called spy, :baz
106
106
  end
107
107
  end
@@ -51,7 +51,7 @@ class BaseClassTest < Test::Unit::TestCase
51
51
 
52
52
  def test_can_not_stub_non_class_methods_in_single_line
53
53
  ex = assert_raises(NoMethodError) do
54
- m = flexmock(:on, FooBar, :bark => :value)
54
+ flexmock(:on, FooBar, :bark => :value)
55
55
  end
56
56
  assert_match(/can *not stub methods.*base.*class/i, ex.message)
57
57
  assert_match(/class:.+FooBar/i, ex.message)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flexmock
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.2.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-10-30 00:00:00.000000000 Z
12
+ date: 2012-11-15 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: ! "\n FlexMock is a extremely simple mock object class compatible\n
15
15
  \ with the Test::Unit framework. Although the FlexMock's\n interface is
@@ -20,8 +20,6 @@ extensions: []
20
20
  extra_rdoc_files:
21
21
  - README.rdoc
22
22
  - CHANGES
23
- - doc/examples/rspec_examples_spec.rdoc
24
- - doc/examples/test_unit_examples_test.rdoc
25
23
  - doc/GoogleExample.rdoc
26
24
  - doc/releases/flexmock-0.4.0.rdoc
27
25
  - doc/releases/flexmock-0.4.1.rdoc
@@ -44,6 +42,8 @@ extra_rdoc_files:
44
42
  - doc/releases/flexmock-0.9.0.rdoc
45
43
  - doc/releases/flexmock-1.0.0.rdoc
46
44
  - doc/releases/flexmock-1.0.3.rdoc
45
+ - doc/examples/rspec_examples_spec.rdoc
46
+ - doc/examples/test_unit_examples_test.rdoc
47
47
  files:
48
48
  - CHANGES
49
49
  - Gemfile
@@ -73,6 +73,7 @@ files:
73
73
  - lib/flexmock/rails/view_mocking.rb
74
74
  - lib/flexmock/rails.rb
75
75
  - lib/flexmock/recorder.rb
76
+ - lib/flexmock/rspec/configure.rb
76
77
  - lib/flexmock/rspec.rb
77
78
  - lib/flexmock/rspec_spy_matcher.rb
78
79
  - lib/flexmock/spy_describers.rb
@@ -116,8 +117,6 @@ files:
116
117
  - test/undefined_test.rb
117
118
  - flexmock.blurb
118
119
  - install.rb
119
- - doc/examples/rspec_examples_spec.rdoc
120
- - doc/examples/test_unit_examples_test.rdoc
121
120
  - doc/GoogleExample.rdoc
122
121
  - doc/releases/flexmock-0.4.0.rdoc
123
122
  - doc/releases/flexmock-0.4.1.rdoc
@@ -140,6 +139,8 @@ files:
140
139
  - doc/releases/flexmock-0.9.0.rdoc
141
140
  - doc/releases/flexmock-1.0.0.rdoc
142
141
  - doc/releases/flexmock-1.0.3.rdoc
142
+ - doc/examples/rspec_examples_spec.rdoc
143
+ - doc/examples/test_unit_examples_test.rdoc
143
144
  homepage: https://github.com/jimweirich/flexmock
144
145
  licenses: []
145
146
  post_install_message:
@@ -159,7 +160,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
159
160
  version: '0'
160
161
  segments:
161
162
  - 0
162
- hash: 575343022424832079
163
+ hash: -972765428365068748
163
164
  required_rubygems_version: !ruby/object:Gem::Requirement
164
165
  none: false
165
166
  requirements: