paginative 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -23,9 +23,10 @@ describe TestModel do
23
23
  end
24
24
 
25
25
  it "starts from the name that is passed in" do
26
- models = FactoryGirl.create_list(:test_model, 30)
27
-
28
- expect(TestModel.with_name_from("e", 1).first.name).to eq "f"
26
+ # This takes advantage of the [n] counter in the factories
27
+ model1 = FactoryGirl.create(:test_model)
28
+ model2 = FactoryGirl.create(:test_model)
29
+ expect(TestModel.with_name_from(model1.name, 1).first).to eq model2
29
30
  end
30
31
  end
31
32
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: paginative
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Isaac Norman
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 4.0.0
19
+ version: '4.0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: 4.0.0
26
+ version: '4.0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: geocoder
29
29
  requirement: !ruby/object:Gem::Requirement