rspec-rails-ext 1.8 → 1.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/CHANGELOG
CHANGED
@@ -9,6 +9,10 @@ class ComparableArray
|
|
9
9
|
array.size == other_array.size && array.all? {|e| other_array.include?(e) }
|
10
10
|
end
|
11
11
|
|
12
|
+
def inspect
|
13
|
+
array.inspect
|
14
|
+
end
|
15
|
+
|
12
16
|
def method_missing method, *args
|
13
17
|
if array.respond_to?(method)
|
14
18
|
array.send(method, *args)
|
@@ -24,4 +28,13 @@ module FuzzyArrayExtension
|
|
24
28
|
ComparableArray.new(self)
|
25
29
|
end
|
26
30
|
end
|
27
|
-
Array.send(:include, FuzzyArrayExtension)
|
31
|
+
Array.send(:include, FuzzyArrayExtension)
|
32
|
+
|
33
|
+
# Because sometimes we get RspecPositiveMatchers and other objects
|
34
|
+
# returned, we just have ~ return self in that situation
|
35
|
+
module AddFuzzyMatcherToObject
|
36
|
+
def ~@
|
37
|
+
self
|
38
|
+
end
|
39
|
+
end
|
40
|
+
Object.send(:include, AddFuzzyMatcherToObject)
|
data/rspec-rails-ext.gemspec
CHANGED
@@ -2,11 +2,11 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = %q{rspec-rails-ext}
|
5
|
-
s.version = "1.8"
|
5
|
+
s.version = "1.8.1"
|
6
6
|
|
7
7
|
s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
|
8
8
|
s.authors = ["Rahoul Baruah, Caius Durling"]
|
9
|
-
s.date = %q{2010-
|
9
|
+
s.date = %q{2010-09-14}
|
10
10
|
s.description = %q{Helpers for prettying up your RSpec-Rails specifications}
|
11
11
|
s.email = %q{support@brightbox.co.uk}
|
12
12
|
s.extra_rdoc_files = ["CHANGELOG", "README.rdoc", "lib/controller_example_group.rb", "lib/mocks.rb", "lib/responses.rb", "lib/rspec_rails_extensions.rb", "lib/rspec_rails_extensions/comparable_array.rb", "lib/use_layout.rb"]
|
metadata
CHANGED
@@ -1,12 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rspec-rails-ext
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 53
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 8
|
9
|
-
|
9
|
+
- 1
|
10
|
+
version: 1.8.1
|
10
11
|
platform: ruby
|
11
12
|
authors:
|
12
13
|
- Rahoul Baruah, Caius Durling
|
@@ -14,7 +15,7 @@ autorequire:
|
|
14
15
|
bindir: bin
|
15
16
|
cert_chain: []
|
16
17
|
|
17
|
-
date: 2010-
|
18
|
+
date: 2010-09-14 00:00:00 +01:00
|
18
19
|
default_executable:
|
19
20
|
dependencies: []
|
20
21
|
|