summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authora14m <[email protected]>2020-12-10 22:05:10 +0100
committera14m <[email protected]>2020-12-10 22:05:10 +0100
commit114b36f8e9ea06e05bf5ea005599f2c31b0aff1b (patch)
tree5fbd45a04b08e4446a76ec5b15fd2791d3bc5e18
parent8928e27b37624babab9a7cd570a1349d3c850d03 (diff)
Update the seed generator test
-rw-r--r--CLI/ruby/spec/game_of_life_spec.rb5
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