summaryrefslogtreecommitdiffstats
path: root/CLI/ruby/spec/game_of_life_spec.rb
diff options
context:
space:
mode:
authora14m <[email protected]>2020-12-10 21:31:16 +0000
committera14m <[email protected]>2020-12-10 21:31:16 +0000
commitfe3c74d73728de8c732af6982aad2d19e3f61373 (patch)
tree35f07cdcf823d03316e803d79bd25d8a7272a378 /CLI/ruby/spec/game_of_life_spec.rb
parentb4e9a712549dba1326aa680157574e946e1faa85 (diff)
parent88ec97f698f5ba68ad2a4be0f45cefa24a3f8934 (diff)
Merge branch 'feature/ruby/seed' into 'master'
Feature/ruby/seed See merge request a14m/game-of-life!6
Diffstat (limited to 'CLI/ruby/spec/game_of_life_spec.rb')
-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