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
7676
7777 specify "use default models" do
7878 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 )
8181 end
8282
8383 specify "allows custom base class" do
@@ -86,8 +86,8 @@ module ActiveRecord
8686 model_factory : WithAbstractBaseClass . new ( CustomApplicationRecord ) ,
8787 serializer : mk_serializer . call ,
8888 )
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 )
9191 end
9292
9393 specify "reading/writting works with custom base class" do
You can’t perform that action at this time.
0 commit comments