Re: [openstack-dev] [Openstack][Horizon] Sharable Angular mock

2015-07-20 Thread Thai Q Tran
:[openstack-dev] [Openstack][Horizon] Sharable Angular mock Currently random mock objects are created inside of spec files to make writing unit tests easier. This approach works but has some drawback: * mocks are not sharable between specs. * mocks are usually too simple. * mocks may

[openstack-dev] [Openstack][Horizon] Sharable Angular mock

2015-07-19 Thread Chen, Shaoquan
Currently random mock objects are created inside of spec files to make writing unit tests easier. This approach works but has some drawback: * mocks are not sharable between specs. * mocks are usually too simple. * mocks may not be consistent between spec files. * mocks are not