Commit 94ea583e
Changed files (2)
app
views
creations
spec
views
creations
app/views/creations/index.html.erb
@@ -8,6 +8,6 @@
<a href="<%= url_for creation %>">
<%= image_tag creation.image_url.to_s, :width => "285px", :height => "140px", :class => "photo", :alt => creation.name %>
</a>
- <p><%= creation.short_story %> <%= link_to 'more...', creation %></p>
+ <p><%= creation.short_story %> <%= link_to 'more', creation %></p>
</div>
<% end %>
spec/views/creations/index.html.erb_spec.rb
@@ -17,8 +17,8 @@ describe "creations/index.html.erb" do
it "renders a list of creations" do
render
# Run the generator again with the --webrat flag if you want to use webrat matchers
- assert_select "tr>td", :text => "Name".to_s, :count => 2
+ assert_select "div>h2", :text => "Name".to_s, :count => 2
# Run the generator again with the --webrat flag if you want to use webrat matchers
- assert_select "tr>td", :text => "MyText".to_s, :count => 2
+ assert_select "div>p", :text => "MyText... more".to_s, :count => 2
end
end