suit 0.1.3 → 0.1.4

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/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.3
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
- first == @subject.class.send(@scope)[0] && second == @subject.class.send(@scope)[1]
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
- first == @subject.class.send(@scope)[0] && second == @subject.class.send(@scope)[1]
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
- first == @subject.class.send(@scope)[0] && second == @subject.class.send(@scope)[1]
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
- first == @subject.class.send(@scope)[0] && second == @subject.class.send(@scope)[1]
79
+ @subject.class.send(@scope).index(first) < @subject.class.send(@scope).index(second)
80
80
  end
81
81
  end
82
82
 
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "suit"
8
- s.version = "0.1.3"
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-19"
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: 29
4
+ hash: 19
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 3
10
- version: 0.1.3
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-19 00:00:00 Z
18
+ date: 2012-08-07 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  type: :runtime