Skip to content

Commit

Permalink
fix test for mulberry.app.Router.home method
Browse files Browse the repository at this point in the history
  • Loading branch information
rmurphey committed Feb 24, 2012
1 parent b132947 commit d4aad1a
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions spec/app/mulberry/router_spec.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
describe("router", function() {
var test, api, init,
routes = [
{
route : '/home',
handler : function() { test = '/home'; }
},
{
route : '/test',
handler : function() {
Expand Down Expand Up @@ -80,10 +76,10 @@ describe("router", function() {
expect(test).toBe('basic');
});

it("should expose a method for going to the home node", function() {
it("should expose a method for going to the default home node", function() {
var spy = spyOn(mulberry.app.UI, 'set');
api.home();
expect(test).toBe('/home');
expect(test).toBe('/test');
expect(spy).toHaveBeenCalledWith('navDirection', 'back');
});

Expand Down

0 comments on commit d4aad1a

Please sign in to comment.