Skip to content

Commit

Permalink
Ingredient kind comes before name, to read better.
Browse files Browse the repository at this point in the history
  • Loading branch information
eee-c committed Mar 29, 2009
1 parent 8723698 commit 675dc42
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
7 changes: 7 additions & 0 deletions spec/views/recipe.haml_spec.rb
Expand Up @@ -75,6 +75,13 @@
end
end

it "should read conversationally, with the ingredient kind before the name" do
response.should have_selector(".preparations") do |preparations|
preparations.
should have_selector(".ingredient > .kind + .name",
:content => 'flour')
end
end
end

context "a recipe with 1 12 ounce bag of Nestle Tollhouse chocolate chips" do
Expand Down
4 changes: 2 additions & 2 deletions views/recipe.haml
Expand Up @@ -9,9 +9,9 @@
= preparation['quantity']
%span.unit
= preparation['unit']
%span.name
= preparation['ingredient']['name']
%span.kind
= preparation['ingredient']['kind']
%span.name
= preparation['ingredient']['name']
%span.brand
= preparation['brand']

0 comments on commit 675dc42

Please sign in to comment.