spec/integrations/rails_4_2/app/views/welcome/index.html.erb in cypress-on-rails-1.0.1 vs spec/integrations/rails_4_2/app/views/welcome/index.html.erb in cypress-on-rails-1.1.0
- old
+ new
@@ -1,5 +1,24 @@
-<h1>Welcome</h1>
-<p>Posts:</p>
-<% Post.all.each do |post| %>
- <p><%= post.inspect %></p>
-<% end %>
+<h1>Posts</h1>
+
+<table>
+ <thead>
+ <tr>
+ <th>Title</th>
+ <th>Body</th>
+ <th>Published</th>
+ <th colspan="3"></th>
+ </tr>
+ </thead>
+
+ <tbody>
+ <% Post.all.each do |post| %>
+ <tr>
+ <td><%= post.title %></td>
+ <td><%= post.body %></td>
+ <td><%= post.published %></td>
+ </tr>
+ <% end %>
+ </tbody>
+</table>
+
+<br>
\ No newline at end of file