Permalink
Browse files

Minor tweak to the format of the generated spec files.

  • Loading branch information...
Larry Karnowski
Larry Karnowski committed Apr 29, 2009
1 parent af11e58 commit c90a20a657f767d7ccf16f660bf19bf383329884
@@ -1,13 +1,13 @@
require("spec_helper.js");
require("../../public/javascripts/application.js");
-Screw.Unit(function() {
- describe("Your application javascript", function() {
- it("does something", function() {
+Screw.Unit(function(){
+ describe("Your application javascript", function(){
+ it("does something", function(){
expect("hello").to(equal, "hello");
});
- it("accesses the DOM from fixtures/application.html", function() {
+ it("accesses the DOM from fixtures/application.html", function(){
expect($('.select_me').length).to(equal, 2);
});
});
@@ -1,9 +1,9 @@
require("spec_helper.js");
require("../../public/javascripts/<%= file_path_without_spec %>.js");
-Screw.Unit(function() {
- describe("<%= class_name_without_spec %>", function() {
- it("does something", function() {
+Screw.Unit(function(){
+ describe("<%= class_name_without_spec %>", function(){
+ it("does something", function(){
expect("hello").to(equal, "hello");
});
});

0 comments on commit c90a20a

Please sign in to comment.