spec_support 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,8 @@
|
|
1
1
|
# FIXME scope this to an RSpec sub module
|
2
2
|
def check_all_columns(instance)
|
3
3
|
instance.class.columns.each do |column|
|
4
|
-
instance.send(:"#{column.name}")
|
4
|
+
val = instance.send(:"#{column.name}")
|
5
|
+
puts "\n WARNING: empty column for #{column.name}" if val.nil?
|
6
|
+
val.should_not be_nil
|
5
7
|
end
|
6
8
|
end
|
data/lib/spec_support/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spec_support
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.7
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-05-04 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rspec
|
@@ -34,11 +34,11 @@ executables: []
|
|
34
34
|
extensions: []
|
35
35
|
extra_rdoc_files: []
|
36
36
|
files:
|
37
|
-
- lib/spec_support.rb
|
38
|
-
- lib/tasks/spec_support_tasks.rake
|
39
37
|
- lib/spec_support/version.rb
|
40
|
-
- lib/spec_support/delete_nil_values.rb
|
41
38
|
- lib/spec_support/check_all_columns.rb
|
39
|
+
- lib/spec_support/delete_nil_values.rb
|
40
|
+
- lib/spec_support.rb
|
41
|
+
- lib/tasks/spec_support_tasks.rake
|
42
42
|
- MIT-LICENSE
|
43
43
|
- Rakefile
|
44
44
|
- README.rdoc
|
@@ -59,7 +59,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
59
59
|
version: '0'
|
60
60
|
segments:
|
61
61
|
- 0
|
62
|
-
hash:
|
62
|
+
hash: 35890817
|
63
63
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
64
64
|
none: false
|
65
65
|
requirements:
|
@@ -68,10 +68,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
68
68
|
version: '0'
|
69
69
|
segments:
|
70
70
|
- 0
|
71
|
-
hash:
|
71
|
+
hash: 35890817
|
72
72
|
requirements: []
|
73
73
|
rubyforge_project:
|
74
|
-
rubygems_version: 1.8.
|
74
|
+
rubygems_version: 1.8.23
|
75
75
|
signing_key:
|
76
76
|
specification_version: 3
|
77
77
|
summary: spec/support for common cases
|