shoulda_machinist_generator 0.4.2 → 0.4.3

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.4.2
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: 11
4
+ hash: 9
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 4
9
- - 2
10
- version: 0.4.2
9
+ - 3
10
+ version: 0.4.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Dave Hrycyszyn