suit 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/models/matchers/scope_sorting_matchers.rb +4 -4
- data/suit.gemspec +2 -2
- metadata +4 -4
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.4
|
@@ -64,19 +64,19 @@ module Suit # :nodoc:
|
|
64
64
|
if @scope == :by_newest
|
65
65
|
first = FactoryGirl.create(factory_name, :created_at => 1.hour.ago)
|
66
66
|
second = FactoryGirl.create(factory_name, :created_at => 1.day.ago)
|
67
|
-
|
67
|
+
@subject.class.send(@scope).index(first) < @subject.class.send(@scope).index(second)
|
68
68
|
elsif @scope == :by_oldest
|
69
69
|
first = FactoryGirl.create(factory_name, :created_at => 1.day.ago)
|
70
70
|
second = FactoryGirl.create(factory_name, :created_at => 1.hour.ago)
|
71
|
-
|
71
|
+
@subject.class.send(@scope).index(first) < @subject.class.send(@scope).index(second)
|
72
72
|
elsif @scope == :by_latest
|
73
73
|
first = FactoryGirl.create(factory_name, :updated_at => 1.hour.ago)
|
74
74
|
second = FactoryGirl.create(factory_name, :updated_at => 1.day.ago)
|
75
|
-
|
75
|
+
@subject.class.send(@scope).index(first) < @subject.class.send(@scope).index(second)
|
76
76
|
else
|
77
77
|
first = FactoryGirl.create(factory_name, @field => 'a')
|
78
78
|
second = FactoryGirl.create(factory_name, @field => 'b')
|
79
|
-
|
79
|
+
@subject.class.send(@scope).index(first) < @subject.class.send(@scope).index(second)
|
80
80
|
end
|
81
81
|
end
|
82
82
|
|
data/suit.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "suit"
|
8
|
-
s.version = "0.1.
|
8
|
+
s.version = "0.1.4"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Justin Ball"]
|
12
|
-
s.date = "2012-07
|
12
|
+
s.date = "2012-08-07"
|
13
13
|
s.description = "A collection of commonly used rspec matchers"
|
14
14
|
s.email = "justinball@gmail.com"
|
15
15
|
s.extra_rdoc_files = [
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: suit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 19
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 4
|
10
|
+
version: 0.1.4
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Justin Ball
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2012-07
|
18
|
+
date: 2012-08-07 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
type: :runtime
|