Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

updated README to reflect new test example

  • Loading branch information...
commit c426428baa3407fd4b78a06c1dc1d578a9707d86 1 parent 671594a
@onsi authored
Showing with 5 additions and 7 deletions.
  1. +5 −7 README.md
View
12 README.md
@@ -91,6 +91,10 @@ The events hash is special-cased by Cocktail. Mixins can define new events hash
Note that key-collisions are still possible. If two mixins add a `click` handler to the events hash (`{'click': ... }`) then the last mixin in the mixins list's event handler will win.
+## Testing Mixins
+
+The [example](https://github.com/onsi/cocktail/tree/master/example) directory includes an example mixin and its usage, and the accompanying [Jasmine](http://www.github.com/pivotal/jasmine) test. It also includes a [readme](https://github.com/onsi/cocktail/tree/master/example) that walks through the testing pattern employed for testing mixins with Jasmine.
+
## Dependencies and "Installation"
Cocktail requires:
@@ -103,10 +107,4 @@ To use Cocktail you must include `Cocktail.js` it *after* including Underscore a
Future changes to backbone could break Cocktail or obviate its need. If the latter happens - great! If the former: let me know and I'll try to ensure compatibility going forward.
## If you like Cocktail...
-...check out [Coccyx](http://github.com/onsi/coccyx). Coccyx helps you plug up backbone leaks with two things: named constructors and tear-downable view hierarchies.
-
---------------
-
-# Testing Mixins
-
-The example directory includes an example mixin and its usage, and the accompanying [Jasmine](http://www.github.com/pivotal/jasmine) test. It also includes a [readme](http://www.github.com/onsi/cocktail/example/README.md) that walks through the testing pattern employed for testing mixins with Jasmine.
+...check out [Coccyx](http://github.com/onsi/coccyx). Coccyx helps you plug up backbone leaks with two things: named constructors and tear-downable view hierarchies.
Please sign in to comment.
Something went wrong with that request. Please try again.