shoulda_machinist_generator 0.4.1 → 0.4.2

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
1
+ 0.4.2
@@ -1,6 +1,11 @@
1
1
  <%% @page_title = "Manage <%= plural_name.humanize %>" %>
2
- <h2>Manage <%= plural_name.humanize %> - <%%= link_to 'Create <%= singular_name.humanize %>', new_admin_<%= singular_name %>_path %></h2>
3
- <!-- <p class="create-button"><%%= link_to '<span class="left"></span><span class="middle">Create CV</span><span class="right"></span>', new_admin_<%= singular_name %>_path %></p> -->
2
+ <h2>
3
+ Manage <%= plural_name.humanize %>
4
+ </h2>
5
+
6
+ <p class="create-button">
7
+ <%%= link_to '<span class="left"></span><span class="middle">Create <%= singular_name.humanize %></span><span class="right"></span>', new_admin_<%= singular_name %>_path %>
8
+ </p>
4
9
 
5
10
  <table class="grid" cellpadding="0" cellspacing="0">
6
11
  <tr>
@@ -26,4 +31,5 @@
26
31
  <td class="delete"><%%= link_to 'Delete', admin_<%= singular_name %>_path(<%= singular_name %>), :title => "Delete <%= singular_name %>", :confirm => 'Are you sure you want to delete this <%= singular_name %>?', :method => :delete %></td>
27
32
  </tr>
28
33
  <%% end %>
29
- </table>
34
+ </table>
35
+
@@ -1,8 +1,12 @@
1
1
  require 'test_helper'
2
2
 
3
3
  class <%= class_name %>Test < ActiveSupport::TestCase
4
- <% for attribute in attributes -%>
5
- should_have_db_column :<%= attribute.name %>
6
- <% end -%>
4
+
5
+ context "The #{class_name} model" do
6
+ <% for attribute in attributes -%>
7
+ should_have_db_column :<%= attribute.name %>
8
+ <% end -%>
9
+ end
10
+
7
11
  end
8
12
 
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: 13
4
+ hash: 11
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 4
9
- - 1
10
- version: 0.4.1
9
+ - 2
10
+ version: 0.4.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Dave Hrycyszyn