diff options
Diffstat (limited to 'CLI/ruby/spec/game_of_life_spec.rb')
| -rw-r--r-- | CLI/ruby/spec/game_of_life_spec.rb | 5 |
1 files changed, 3 insertions, 2 deletions
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 |
