shoulda_machinist_generator 0.4.2 → 0.4.3
Sign up to get free protection for your applications and to get access to all the features.
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.4.
|
1
|
+
0.4.3
|
@@ -1,8 +1,15 @@
|
|
1
|
-
require 'test_helper'
|
1
|
+
require 'test_helper'
|
2
2
|
|
3
3
|
class <%= class_name %>Test < ActiveSupport::TestCase
|
4
4
|
|
5
5
|
context "The #{class_name} model" do
|
6
|
+
|
7
|
+
setup do
|
8
|
+
@<%= file_name %> = <%= class_name %>.make
|
9
|
+
end
|
10
|
+
|
11
|
+
subject { @<%= file_name %> }
|
12
|
+
|
6
13
|
<% for attribute in attributes -%>
|
7
14
|
should_have_db_column :<%= attribute.name %>
|
8
15
|
<% end -%>
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: shoulda_machinist_generator
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 9
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 4
|
9
|
-
-
|
10
|
-
version: 0.4.
|
9
|
+
- 3
|
10
|
+
version: 0.4.3
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Dave Hrycyszyn
|