Permalink
Browse files

Pasamos etiqueta del layout a cell, donde es más fácil hacer tests.

  • Loading branch information...
1 parent 89713b6 commit 1ca39aa909afa5cc0561935d5bf39d6b166ee00a Javier Martín committed Feb 14, 2012
@@ -1,3 +1,4 @@
-= render state: :logo
-= render state: :access
-= render state: :lema
+%header#cabecera{role: "banner"}
+ = render state: :logo
+ = render state: :access
+ = render state: :lema
@@ -8,7 +8,7 @@
= csrf_meta_tag
%body{class: controller_name}
- %header#cabecera{role: 'banner'}= render_cell :cabecera, :display
+ = render_cell :cabecera, :display
#navegacion
= render_cell :navegacion, :display
= render 'general/buscador'
@@ -25,4 +25,9 @@
subject { render_cell(:cabecera, :lema) }
it { should have_selector("#lema") }
end
+
+ describe "display" do
+ subject { render_cell :cabecera, :display }
+ it { should have_selector "header[role='banner']" }
+ end
end

0 comments on commit 1ca39aa

Please sign in to comment.