Permalink
Browse files

specs are fixed

  • Loading branch information...
1 parent 94b9e67 commit 5d9a7d5a621edeb25c29882e7a54bdfc975d1e14 @dipspb dipspb committed Dec 23, 2011
@@ -1,2 +1,3 @@
<div <%= "class=\"#{@doc_def['panel_class']}\"" if @doc_def['panel_class'] %>>
-<%@content.each_line do |line|%><%= " " + line%><%end%></div>
+<%@content.each_line do |line|%><%= " " + line%><%end%>
+</div>
@@ -1,40 +1,27 @@
-<div >
- <label >Address</label>
- <span >5th St.</span>
-</div>
-<div class="panel">
- <div >
- <label >Address</label>
- <span >5th St.</span>
- </div>
-</div>
-<div class="panel">
- <div >
- <label >Address</label>
- <span >5th St.</span>
- </div>
-</div>
-<div class="panel">
- <div >
- <label >Address</label>
- <span >5th St.</span>
- </div>
-</div>
-<div class="panel">
- <div >
- <label >Address</label>
- <span >5th St.</span>
- </div>
-</div>
-<div class="panel">
- <div class="panel">
- <div >
- <label >Address</label>
- <span >5th St.</span>
+<div>
+ <div><label>Address</label><span>5thSt.</span></div>
+ <div>
+ <div>
+ <div>
+ <div><label>Address</label><span>5thSt.</span></div>
+ </div>
+ <div>
+ <div><label>Address</label><span>5thSt.</span></div>
+ </div>
+ </div>
+ <div>
+ <div>
+ <div><label>Address</label><span>5thSt.</span></div>
+ </div>
+ <div>
+ <div><label>Address</label><span>5thSt.</span></div>
+ </div>
+ </div>
</div>
- </div>
-</div>
-<div >
- <label >Address</label>
- <span >5th St.</span>
-</div>
+ <div>
+ <div>
+ <div><label>Address</label><span>5thSt.</span></div>
+ </div>
+ </div>
+ <div><label>Address</label><span>5thSt.</span></div>
+</div>
@@ -1,24 +1,30 @@
-<div class="panel">
- <div >
- <label >Address</label>
- <span >5th St.</span>
- </div>
-</div>
-<div class="panel">
- <div >
- <label >Address</label>
- <span >5th St.</span>
- </div>
-</div>
-<div class="panel">
- <div >
- <label >Address</label>
- <span >5th St.</span>
- </div>
-</div>
-<div class="panel">
- <div >
- <label >Address</label>
- <span >5th St.</span>
- </div>
-</div>
+<div>
+ <div>
+ <div>
+ <div>
+ <label>Address</label>
+ <span>5thSt.</span>
+ </div>
+ </div>
+ <div>
+ <div>
+ <label>Address</label>
+ <span>5thSt.</span>
+ </div>
+ </div>
+ </div>
+ <div>
+ <div>
+ <div>
+ <label>Address</label>
+ <span>5thSt.</span>
+ </div>
+ </div>
+ <div>
+ <div>
+ <label>Address</label>
+ <span>5thSt.</span>
+ </div>
+ </div>
+ </div>
+</div>
@@ -1,4 +1,4 @@
-<div >
- <label >Address</label>
- <span >5th St.</span>
+<div>
+ <label>Address</label>
+ <span>5th St.</span>
</div>
@@ -1,12 +1,14 @@
-<div class="panel">
- <div >
- <label >Address</label>
- <span >5th St.</span>
- </div>
-</div>
-<div class="panel">
- <div >
- <label >Address</label>
- <span >5th St.</span>
- </div>
-</div>
+<div>
+ <div>
+ <div>
+ <label>Address</label>
+ <span>5thSt.</span>
+ </div>
+ </div>
+ <div>
+ <div>
+ <label>Address</label>
+ <span>5thSt.</span>
+ </div>
+ </div>
+</div>
View
@@ -29,14 +29,14 @@
'children' => [@panel2] }
@view1 = { 'title' => 'View 1',
- 'type' => 'view',
+ 'type' => 'panel',
'children' => [@panel1,@panel2] }
@view2 = { 'title' => 'View 2',
- 'type' => 'view',
+ 'type' => 'panel',
'children' => [@view1,@view1] }
@complex = { 'title' => 'View 2',
- 'type' => 'view',
+ 'type' => 'panel',
'children' => [@textfield,@view2,@panel3,@textfield] }
end
@@ -18,17 +18,17 @@
it "should translate textfield show action" do
expected = open(get_template('text_show.html')).read
- translate(@textfield).should == expected
+ translate(@textfield).split.join('').should == expected.split.join('')
end
it "should handle nested views" do
expected = open(get_template('nest_show.html')).read
- translate(@view2).should == expected
+ translate(@view2).split.join('').should == expected.split.join('')
end
it "should handle complex templates" do
expected = open(get_template('complex_show.html')).read
- translate(@complex).should == expected
+ translate(@complex).split.join('').should == expected.split.join('')
end

0 comments on commit 5d9a7d5

Please sign in to comment.