rspec-expectations 2.0.0.a10 → 2.0.0.beta.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. data/Rakefile +13 -15
  2. data/VERSION +1 -1
  3. data/lib/rspec/matchers.rb +28 -29
  4. data/spec/spec_helper.rb +14 -5
  5. metadata +15 -12
data/Rakefile CHANGED
@@ -1,7 +1,5 @@
1
- require 'rubygems'
2
- gem 'jeweler', '>= 1.4.0'
1
+ $LOAD_PATH << File.expand_path("../lib", __FILE__)
3
2
  require 'rake'
4
- $:.unshift File.expand_path(File.join(File.dirname(__FILE__),'lib'))
5
3
  require 'rspec/expectations/version'
6
4
 
7
5
  begin
@@ -24,9 +22,9 @@ begin
24
22
 
25
23
  Thank you for installing #{gem.summary}
26
24
 
27
- The 'a' in #{gem.version} means this is alpha software.
28
- If you are looking for a supported production release,
29
- please "gem install rspec" (without --pre).
25
+ This is beta software. If you are looking
26
+ for a supported production release, please
27
+ "gem install rspec" (without --pre).
30
28
 
31
29
  #{"*"*50}
32
30
  EOM
@@ -37,20 +35,20 @@ end
37
35
 
38
36
  begin
39
37
  require 'rspec/core/rake_task'
40
- Rspec::Core::RakeTask.new(:spec) do |spec|
41
- spec.pattern = "spec/**/*_spec.rb"
42
- end
38
+ Rspec::Core::RakeTask.new(:spec)
43
39
  rescue LoadError
44
- puts "Rspec core or one of its dependencies is not installed. Install it with: gem install rspec-meta"
40
+ puts "Rspec core or one of its dependencies is not installed. Install it with: gem install rspec-core"
45
41
  end
46
42
 
47
- require 'cucumber/rake/task'
48
-
49
- Cucumber::Rake::Task.new do |t|
50
- t.cucumber_opts = %w{--format progress}
43
+ begin
44
+ require 'cucumber/rake/task'
45
+ Cucumber::Rake::Task.new do |t|
46
+ t.cucumber_opts = %w{--format progress}
47
+ end
48
+ rescue LoadError
49
+ puts "Cucumber or one of its dependencies is not installed. Install it with: gem install cucumber"
51
50
  end
52
51
 
53
-
54
52
  task :default => [:check_dependencies, :spec, :cucumber]
55
53
 
56
54
  require 'rake/rdoctask'
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.0.0.a10
1
+ 2.0.0.beta.1
@@ -1,33 +1,4 @@
1
- require 'rspec/matchers/extensions/instance_exec'
2
- require 'rspec/matchers/pretty'
3
- require 'rspec/matchers/matcher'
4
- require 'rspec/matchers/operator_matcher'
5
- require 'rspec/matchers/be'
6
- require 'rspec/matchers/be_close'
7
- require 'rspec/matchers/be_instance_of'
8
- require 'rspec/matchers/be_kind_of'
9
- require 'rspec/matchers/change'
10
- require 'rspec/matchers/eq'
11
- require 'rspec/matchers/eql'
12
- require 'rspec/matchers/equal'
13
- require 'rspec/matchers/errors'
14
- require 'rspec/matchers/exist'
15
- require 'rspec/matchers/generated_descriptions'
16
- require 'rspec/matchers/has'
17
- require 'rspec/matchers/have'
18
- require 'rspec/matchers/include'
19
- require 'rspec/matchers/match'
20
- require 'rspec/matchers/match_array'
21
- require 'rspec/matchers/method_missing'
22
- require 'rspec/matchers/raise_error'
23
- require 'rspec/matchers/respond_to'
24
- require 'rspec/matchers/satisfy'
25
- require 'rspec/matchers/throw_symbol'
26
- require 'rspec/matchers/compatibility'
27
- require 'rspec/matchers/dsl'
28
-
29
1
  module Rspec
30
-
31
2
  # RSpec ships with a number of useful Expression Matchers. An Expression Matcher
32
3
  # is any object that responds to the following methods:
33
4
  #
@@ -197,3 +168,31 @@ module Rspec
197
168
  end
198
169
  end
199
170
 
171
+ require 'rspec/matchers/extensions/instance_exec'
172
+ require 'rspec/matchers/pretty'
173
+ require 'rspec/matchers/matcher'
174
+ require 'rspec/matchers/operator_matcher'
175
+ require 'rspec/matchers/be'
176
+ require 'rspec/matchers/be_close'
177
+ require 'rspec/matchers/be_instance_of'
178
+ require 'rspec/matchers/be_kind_of'
179
+ require 'rspec/matchers/change'
180
+ require 'rspec/matchers/eq'
181
+ require 'rspec/matchers/eql'
182
+ require 'rspec/matchers/equal'
183
+ require 'rspec/matchers/errors'
184
+ require 'rspec/matchers/exist'
185
+ require 'rspec/matchers/generated_descriptions'
186
+ require 'rspec/matchers/has'
187
+ require 'rspec/matchers/have'
188
+ require 'rspec/matchers/include'
189
+ require 'rspec/matchers/match'
190
+ require 'rspec/matchers/match_array'
191
+ require 'rspec/matchers/method_missing'
192
+ require 'rspec/matchers/raise_error'
193
+ require 'rspec/matchers/respond_to'
194
+ require 'rspec/matchers/satisfy'
195
+ require 'rspec/matchers/throw_symbol'
196
+ require 'rspec/matchers/compatibility'
197
+ require 'rspec/matchers/dsl'
198
+
@@ -1,9 +1,18 @@
1
- $LOAD_PATH << File.expand_path('../../../rspec-core/lib', __FILE__)
2
- $LOAD_PATH << File.expand_path('../../../rspec-mocks/lib', __FILE__)
3
- $LOAD_PATH.unshift(File.expand_path('../../lib', __FILE__))
4
- require 'rspec/mocks'
1
+ def add_to_load_path(path, prepend=false)
2
+ path = File.expand_path("../#{path}", __FILE__)
3
+ if prepend
4
+ $LOAD_PATH.unshift(path) unless $LOAD_PATH.include?(path)
5
+ else
6
+ $LOAD_PATH << path unless $LOAD_PATH.include?(path)
7
+ end
8
+ end
9
+
10
+ add_to_load_path("../lib", :prepend)
11
+ add_to_load_path("../../rspec-core/lib")
12
+ add_to_load_path("../../rspec-mocks/lib")
13
+
5
14
  require 'rspec/core'
6
- require 'rspec/expectations'
15
+ require 'rspec/mocks'
7
16
 
8
17
  Dir['./spec/support/**/*'].each do |f|
9
18
  require f
metadata CHANGED
@@ -6,8 +6,9 @@ version: !ruby/object:Gem::Version
6
6
  - 2
7
7
  - 0
8
8
  - 0
9
- - a10
10
- version: 2.0.0.a10
9
+ - beta
10
+ - 1
11
+ version: 2.0.0.beta.1
11
12
  platform: ruby
12
13
  authors:
13
14
  - David Chelimsky
@@ -16,7 +17,7 @@ autorequire:
16
17
  bindir: bin
17
18
  cert_chain: []
18
19
 
19
- date: 2010-02-27 00:00:00 -06:00
20
+ date: 2010-03-01 00:00:00 -06:00
20
21
  default_executable:
21
22
  dependencies:
22
23
  - !ruby/object:Gem::Dependency
@@ -58,8 +59,9 @@ dependencies:
58
59
  - 2
59
60
  - 0
60
61
  - 0
61
- - a10
62
- version: 2.0.0.a10
62
+ - beta
63
+ - 1
64
+ version: 2.0.0.beta.1
63
65
  type: :development
64
66
  version_requirements: *id003
65
67
  - !ruby/object:Gem::Dependency
@@ -73,8 +75,9 @@ dependencies:
73
75
  - 2
74
76
  - 0
75
77
  - 0
76
- - a10
77
- version: 2.0.0.a10
78
+ - beta
79
+ - 1
80
+ version: 2.0.0.beta.1
78
81
  type: :development
79
82
  version_requirements: *id004
80
83
  description: rspec expectations (should[_not] and matchers)
@@ -173,11 +176,11 @@ licenses: []
173
176
  post_install_message: |
174
177
  **************************************************
175
178
 
176
- Thank you for installing rspec-expectations-2.0.0.a10
179
+ Thank you for installing rspec-expectations-2.0.0.beta.1
177
180
 
178
- The 'a' in 2.0.0.a10 means this is alpha software.
179
- If you are looking for a supported production release,
180
- please "gem install rspec" (without --pre).
181
+ This is beta software. If you are looking
182
+ for a supported production release, please
183
+ "gem install rspec" (without --pre).
181
184
 
182
185
  **************************************************
183
186
 
@@ -207,7 +210,7 @@ rubyforge_project: rspec
207
210
  rubygems_version: 1.3.6
208
211
  signing_key:
209
212
  specification_version: 3
210
- summary: rspec-expectations-2.0.0.a10
213
+ summary: rspec-expectations-2.0.0.beta.1
211
214
  test_files:
212
215
  - spec/rspec/expectations/differs/default_spec.rb
213
216
  - spec/rspec/expectations/extensions/kernel_spec.rb