Skip to content

Commit 7460261

Browse files
committed
Update spec after internals has been changed
1 parent 18bee54 commit 7460261

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

ruby_event_store-active_record/spec/event_repository_spec.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)