From 76602f635341a0b6a076c622190dd95825507e7c Mon Sep 17 00:00:00 2001
From: Wojciech Zawistowski <wojciech.zawistowski@gmail.com>
Date: Mon, 28 Oct 2013 19:01:36 +0100
Subject: [PATCH] fixes wrong placement of expect in header integration test

---
 test/javascripts/integration/header_test.js | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/test/javascripts/integration/header_test.js b/test/javascripts/integration/header_test.js
index 3ed5d24905a..392bf8a930f 100644
--- a/test/javascripts/integration/header_test.js
+++ b/test/javascripts/integration/header_test.js
@@ -1,14 +1,10 @@
 integration("Header");
 
 test("/", function() {
+  expect(2);
 
   visit("/").then(function() {
-    expect(2);
-
     ok(exists("header"), "The header was rendered");
     ok(exists("#site-logo"), "The logo was shown");
   });
-
 });
-
-