Commit Graph

20 Commits

Author SHA1 Message Date
Piotr Sarnacki
8b25160a62 Fix specs and a bug that they've catched
Specs needed to be updated to handle new way of receiving methods.
What's more they revealed a subtle bug that was present after changing
merge function to fetch record if it's not present.

After calling merge, store calls method to update associations. This
may be not possible if clientId for new record is not correctly set.
2012-08-12 02:26:45 +02:00
Piotr Sarnacki
f7422e15c7 Fix specs filtering
We need to check newer versions of Jasmine and if they're broken, it
would be nice to contribute, but for now I'll just do this quick fix.
2012-08-12 02:21:43 +02:00
Piotr Sarnacki
236ac25cbf Merge data coming from pusher instead of replacing everything
Pusher events do not always have the entire data for given object.
That's why we need to merge incoming data instead of replacing
everything. Current implementation of merge is just modified version of
load function, so it will be best to either add it to Ember or make the
implementation less dependent on internals.
2012-08-02 01:54:17 +02:00
Piotr Sarnacki
65d844f480 Fix pusher events and pusher related specs 2012-07-30 22:25:33 +02:00
Piotr Sarnacki
f71a1daab9 Fix even more specs 2012-07-30 15:13:01 +02:00
Piotr Sarnacki
809a94f651 Fix more specs 2012-07-30 14:55:59 +02:00
Piotr Sarnacki
4a15ccde32 Run second waitFor in runs() block
It seems that this is more reliable way to handle async waits. runs
block is executed only when first waitFor succeeds and then it waits for
next waitFor.
2012-07-30 13:25:30 +02:00
Piotr Sarnacki
b099a8e2bb Specs fixing, allow to run 2 build related specs for now 2012-07-30 03:41:17 +02:00
Sven Fuchs
00cfe41cc5 stuff 2012-07-17 11:54:06 +02:00
Sven Fuchs
7eeb44a9f5 fix things to update when stuff is loaded after the fact, ie. through websockets 2012-07-09 03:52:43 +02:00
Sven Fuchs
ba0e3827de moar specs. test setup still fucked 2012-07-08 20:48:09 +02:00
Sven Fuchs
fb618f05a7 stuff 2012-07-08 15:25:24 +02:00
Sven Fuchs
82117d5730 improve specs 2012-07-07 15:37:34 +02:00
Sven Fuchs
4de9a4b9fc fix specs 2012-07-05 00:22:58 +02:00
Sven Fuchs
75b2e1bd6c work on actions 2012-07-04 12:19:59 +02:00
Sven Fuchs
50ff39d5c0 go back to sc-router 2012-06-29 14:42:39 +02:00
Sven Fuchs
f02eb6afbc add some more specs 2012-06-27 16:28:19 +02:00
Sven Fuchs
932219f377 yay, finally a passing spec 2012-06-26 03:56:22 +02:00
Sven Fuchs
daed80916b rearrange things so that we can destroy/create the app for test isolation 2012-06-26 03:12:55 +02:00
Sven Fuchs
cc49b87a97 try using jasmine for specs 2012-06-25 23:58:27 +02:00