Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

adding example test

  • Loading branch information...
commit b942a5a7b8680d397282f0fa5a0a8a6f6a015051 1 parent 782ff49
@mkrisher authored
Showing with 18 additions and 4 deletions.
  1. +5 −4 install.rb
  2. +13 −0 public/javascripts/tests/test.js
View
9 install.rb
@@ -14,11 +14,12 @@
# install all image files
FileUtils.cp File.dirname(__FILE__) + '/public/images/l_qunit.png', images_dir unless File.exists?(images_dir + "l_qunit.png")
-FileUtils.cp File.dirname(__FILE__) + '/public/images/l_qunit.png', images_dir unless File.exists?(images_dir + "i_loading_bar.gif")
-FileUtils.cp File.dirname(__FILE__) + '/public/images/l_qunit.png', images_dir unless File.exists?(images_dir + "bg_secondaryNav_right.gif")
-FileUtils.cp File.dirname(__FILE__) + '/public/images/l_qunit.png', images_dir unless File.exists?(images_dir + "bg_secondaryNav_left.gif")
-FileUtils.cp File.dirname(__FILE__) + '/public/images/l_qunit.png', images_dir unless File.exists?(images_dir + "bg_diagonalDarkBlue.gif")
+FileUtils.cp File.dirname(__FILE__) + '/public/images/i_loading_bar.gif', images_dir unless File.exists?(images_dir + "i_loading_bar.gif")
+FileUtils.cp File.dirname(__FILE__) + '/public/images/bg_secondaryNav_right.gif', images_dir unless File.exists?(images_dir + "bg_secondaryNav_right.gif")
+FileUtils.cp File.dirname(__FILE__) + '/public/images/bg_secondaryNav_left.gif', images_dir unless File.exists?(images_dir + "bg_secondaryNav_left.gif")
+FileUtils.cp File.dirname(__FILE__) + '/public/images/bg_diagonalDarkBlue.gif', images_dir unless File.exists?(images_dir + "bg_diagonalDarkBlue.gif")
# create the tests directory
FileUtils.mkdir js_dir + 'tests'
+FileUtils.cp File.dirname(__FILE__) + '/public/javascripts/tests/test.js', js_dir + 'tests' unless File.exists?(js_dir + 'tests/' + "test.js")
View
13 public/javascripts/tests/test.js
@@ -0,0 +1,13 @@
+var localtests = {
+ test_another_example : function()
+ {
+ module("Module Test");
+ test("simple passing example", function()
+ {
+ var value = "foo";
+ equals( "foo", value, "We expect value to be foo" );
+ });
+ }
+};
+
+$().extend(tests, localtests);
Please sign in to comment.
Something went wrong with that request. Please try again.