File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
ruby_event_store-active_record/spec Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -76,8 +76,8 @@ module ActiveRecord
76
76
77
77
specify "use default models" do
78
78
repository = EventRepository . new ( serializer : mk_serializer . call )
79
- expect ( repository . instance_variable_get ( :@ event_klass) ) . to be ( Event )
80
- expect ( repository . instance_variable_get ( :@ stream_klass) ) . to be ( EventInStream )
79
+ expect ( repository . send ( : event_klass) ) . to be ( Event )
80
+ expect ( repository . send ( : stream_klass) ) . to be ( EventInStream )
81
81
end
82
82
83
83
specify "allows custom base class" do
@@ -86,8 +86,8 @@ module ActiveRecord
86
86
model_factory : WithAbstractBaseClass . new ( CustomApplicationRecord ) ,
87
87
serializer : mk_serializer . call ,
88
88
)
89
- expect ( repository . instance_variable_get ( :@ event_klass) . ancestors ) . to include ( CustomApplicationRecord )
90
- expect ( repository . instance_variable_get ( :@ stream_klass) . ancestors ) . to include ( CustomApplicationRecord )
89
+ expect ( repository . send ( : event_klass) . ancestors ) . to include ( CustomApplicationRecord )
90
+ expect ( repository . send ( : stream_klass) . ancestors ) . to include ( CustomApplicationRecord )
91
91
end
92
92
93
93
specify "reading/writting works with custom base class" do
You can’t perform that action at this time.
0 commit comments