public
Description: Sample Rails project demonstrating JavaScript testing with Blue-Ridge
Homepage:
Clone URL: git://github.com/relevance/blue-ridge-sample-app.git
blue-ridge-sample-app / test / javascript / spec_helper.js
100644 13 lines (10 sloc) 0.336 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
// Use this file to require common dependencies or to setup useful test functions.
 
function fixture(element) {
  $('<div id="fixtures"/>').append(element).appendTo("body");
}
 
function cleanFixtures() {
  $("#fixtures").remove();
}
 
// Stub out some common plugins.
jQuery.fn.live = function(){};
jQuery.fn.defaultValue = function(){};