Permalink
Browse files

Fixed external js unit test

  • Loading branch information...
brooklynDev committed Dec 27, 2012
1 parent 73a3b03 commit 180f6e849949c39de5cbc8b8ef3d1b158294ac41
Showing with 3 additions and 8 deletions.
  1. +1 −5 NGon.SampleApplication/Controllers/HomeController.cs
  2. +2 −3 NGon.Tests/NGonTests.cs
@@ -1,8 +1,4 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Web;
-using System.Web.Mvc;
+using System.Web.Mvc;
namespace NGon.SampleApplication.Controllers
{
View
@@ -128,9 +128,8 @@ public void ExternalJsFileTrueOutputsExternalJSReference()
var result = _helper.IncludeNGon(useExternalJSFile: true);
//assert
- var expected = @"<script src=""ngon.js"" type=""text/javascript""></script>";
- var actual = result.ToString();
- Assert.AreEqual(expected, actual);
+ var expected = "<script src=\"ngon.js?r=";
+ Assert.IsTrue(result.ToString().StartsWith(expected)); //because of the cache busting, can't really match exact. Need to think of a workaround....
}
}
}

0 comments on commit 180f6e8

Please sign in to comment.