From 114b36f8e9ea06e05bf5ea005599f2c31b0aff1b Mon Sep 17 00:00:00 2001 From: a14m Date: Thu, 10 Dec 2020 22:05:10 +0100 Subject: Update the seed generator test --- CLI/ruby/spec/game_of_life_spec.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'CLI/ruby') diff --git a/CLI/ruby/spec/game_of_life_spec.rb b/CLI/ruby/spec/game_of_life_spec.rb index b4c1710..6564327 100644 --- a/CLI/ruby/spec/game_of_life_spec.rb +++ b/CLI/ruby/spec/game_of_life_spec.rb @@ -48,11 +48,12 @@ RSpec.describe GameOfLife do described_class.generate(options) end - it "calls Generators::Seed.new (and raises error)" do + it "calls Generators::Seed.new" do allow(described_class::Cell).to receive(:const_set) allow(described_class).to receive(:const_set) - expect { described_class.generate(options) }.to raise_error(NotImplementedError) + expect(described_class::Generators::Seed).to receive(:new).with(options) + described_class.generate(options) end end end -- cgit v1.2.3