spec/dummy/app/views/posts/_post.html.erb in draper-2.1.0 vs spec/dummy/app/views/posts/_post.html.erb in draper-3.0.0.pre1

- old
+ new

@@ -18,17 +18,19 @@ <dd id="hello_world"><%= post.hello_world %></dd> <dt>Helpers from the controller:</dt> <dd id="goodnight_moon"><%= post.goodnight_moon %></dd> - <dt>Path with decorator:</dt> - <dd id="path_with_decorator"><%= post_path(post) %></dd> + <% unless defined? mailer %> + <dt>Path with decorator:</dt> + <dd id="path_with_decorator"><%= post_url(post) %></dd> - <dt>Path with model:</dt> - <dd id="path_with_model"><%= post.path_with_model %></dd> + <dt>Path with model:</dt> + <dd id="path_with_model"><%= post.path_with_model %></dd> - <dt>Path with id:</dt> - <dd id="path_with_id"><%= post.path_with_id %></dd> + <dt>Path with id:</dt> + <dd id="path_with_id"><%= post.path_with_id %></dd> + <% end %> <dt>URL with decorator:</dt> <dd id="url_with_decorator"><%= post_url(post) %></dd> <dt>URL with model:</dt>