active_record_model_and_rspec_enhanced_templates 1.0.8 → 1.0.9
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ee8d82da528ceab680409855dd8c2b99ac67e9b5
|
4
|
+
data.tar.gz: f301688b27b582a52f6862cd6756840674d2f699
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ddd7949f694de29e97a435f36d27ad03a579f53e349f86ddfc6b8fc88b5fb5fd57a4907239d9b418556ead755717f8d006a33703d897769d6bd43d1e66068bf0
|
7
|
+
data.tar.gz: f4042aaa78d0fe6347337cafa1032e94deff4298a598b25c692eec499ec18e9e5bc13469c2ed8df5c208017c7534c428a0a5eb9a5ca7bd858d5bd1cc3a27f766
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.9
|
@@ -2,11 +2,11 @@
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
3
|
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
|
-
# stub: active_record_model_and_rspec_enhanced_templates 1.0.
|
5
|
+
# stub: active_record_model_and_rspec_enhanced_templates 1.0.9 ruby lib
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = "active_record_model_and_rspec_enhanced_templates"
|
9
|
-
s.version = "1.0.
|
9
|
+
s.version = "1.0.9"
|
10
10
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
12
12
|
s.require_paths = ["lib"]
|
@@ -21,8 +21,8 @@ describe <%= class_name %>, type: :model do
|
|
21
21
|
it { should be_valid }
|
22
22
|
|
23
23
|
<% if attribute = attributes.detect{|a| a.name == 'position'} || attributes.detect{|a| a.name == 'name'} || attributes.detect{|a| a.name == 'title'} || attributes.first -%>
|
24
|
-
describe
|
25
|
-
describe
|
24
|
+
describe 'class methods' do
|
25
|
+
describe 'scopes' do
|
26
26
|
describe '.ordered' do
|
27
27
|
it 'orders the records of <%= class_name %> by :<%=attribute.name %>' do
|
28
28
|
<% if options[:fixture_replacement] == :factory_girl -%>
|
@@ -36,7 +36,7 @@ describe <%= class_name %>, type: :model do
|
|
36
36
|
end
|
37
37
|
end # .ordered
|
38
38
|
end # scopes
|
39
|
-
end # class
|
39
|
+
end # class methods
|
40
40
|
|
41
41
|
<% end -%>
|
42
42
|
end
|