Question: ```
  <android.support.v7.widget.CardView xmlns:card_view="http://schemas.android.com/apk/res-auto"
    android:id="@+id/home_subscribe_card"
    android:layout_width="match_parent"
    android:layout_height="72dp"
    android:onClick="@{vm.onGoalPress}"
    card_view:cardCornerRadius="4dp">

<android.support.v7.widget.RecyclerView
                android:id="@+id/feeds_list"
                android:layout_width="200dp"
                android:layout_height="30dp"
                android:layout_marginTop="6dp" />

</CardView>

```

The card view on Click is working .But the region of recycler view is not clickable. How can it be made clickable so that the event of card view is captured.

Answer: 
This should be,

```
it('test controller calls ng dialog when it calls openModel method', function () {
    ngDialogInstance.open();
    scope.openModal1();
    expect(scope.openModal1).toHaveBeenCalled();
    expect(ngDialogInstance.open).toHaveBeenCalled();
});

```

You have to include below line:   

```
ngDialogInstance.open();

```
you have to mock `ngDialogInstance.open` method. So change your this part of code 

`it('test controller calls ng dialog when it calls openModel method', function () {
 scope.openModal1();
 expect(scope.openModal1).toHaveBeenCalled();
 expect(ngDialogInstance.open).toHaveBeenCalled();
 });`

into this 

`it('test controller calls ng dialog when it calls openModel method', function () {
 **spyOn(ngDialogInstance, 'open');**
 scope.openModal1();
 expect(scope.openModal1).toHaveBeenCalled();
 expect(ngDialogInstance.open).toHaveBeenCalled();
 });`

Note: spyOn spy the method which you are going to test, it spy that it has been called or not, has been called with correct parameters or not etc. 

for more info on spyOn go tho official doc of [jasmine](https://jasmine.github.io/2.0/introduction.html)