File tree Expand file tree Collapse file tree 1 file changed +18
-1
lines changed Expand file tree Collapse file tree 1 file changed +18
-1
lines changed Original file line number Diff line number Diff line change 12
12
#import < Expecta/Expecta.h>
13
13
#import < OCMock/OCMock.h>
14
14
15
+ #import " ASHRecipe.h"
16
+ #import " ASHStep.h"
17
+
15
18
#import " ASHEditRecipeViewModel.h"
19
+ #import " CoreDataHelpers.h"
16
20
17
21
SpecBegin (ASHEditRecipeViewModel)
18
22
19
23
describe(@" ASHEditRecipeViewModel" , ^{
20
- pending (@" it correctly gathers properties from the model" , ^{
24
+ static ASHRecipe *recipe;
25
+
26
+ beforeEach (^{
27
+ NSManagedObjectContext *context = [[ASHCoreDataStack defaultStack ] managedObjectContext ];
28
+ [context reset ];
29
+
30
+ recipe = setupRecipe (context);
31
+ });
32
+
33
+ it (@" it correctly gathers properties from the model" , ^{
34
+ ASHEditRecipeViewModel *viewModel = [[ASHEditRecipeViewModel alloc ] initWithModel: recipe];
21
35
36
+ expect (viewModel.name ).to .equal (recipe.name );
37
+ expect (viewModel.blurb ).to .equal (recipe.blurb );
38
+ expect (viewModel.filmType ).to .equal (recipe.filmType );
22
39
});
23
40
24
41
pending (@" cancel deletes the model iff inserting" , ^{
You can’t perform that action at this time.
0 commit comments