diff options
| author | a14m <[email protected]> | 2020-11-27 17:02:40 +0100 |
|---|---|---|
| committer | a14m <[email protected]> | 2020-11-27 17:55:36 +0100 |
| commit | 8185d66664367eab60edb3ab27103d22c1631769 (patch) | |
| tree | 6b2b8f68a3a559e8f24d65003ae17848e3111e5d /CLI/ruby/spec | |
| parent | d1a020777af347f59b73b58f0ce96bb360dc6b35 (diff) | |
Initial commit of the ruby gem
Diffstat (limited to 'CLI/ruby/spec')
| -rw-r--r-- | CLI/ruby/spec/game_of_life_spec.rb | 11 | ||||
| -rw-r--r-- | CLI/ruby/spec/spec_helper.rb | 16 |
2 files changed, 27 insertions, 0 deletions
diff --git a/CLI/ruby/spec/game_of_life_spec.rb b/CLI/ruby/spec/game_of_life_spec.rb new file mode 100644 index 0000000..bb1abaa --- /dev/null +++ b/CLI/ruby/spec/game_of_life_spec.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +RSpec.describe GameOfLife do + it "has a version number" do + expect(GameOfLife::VERSION).not_to be nil + end + + it "does something useful" do + expect(false).to eq(true) + end +end diff --git a/CLI/ruby/spec/spec_helper.rb b/CLI/ruby/spec/spec_helper.rb new file mode 100644 index 0000000..b65df8e --- /dev/null +++ b/CLI/ruby/spec/spec_helper.rb @@ -0,0 +1,16 @@ +# frozen_string_literal: true + +require "bundler/setup" +require "game_of_life" + +RSpec.configure do |config| + # Enable flags like --only-failures and --next-failure + config.example_status_persistence_file_path = ".rspec_status" + + # Disable RSpec exposing methods globally on `Module` and `main` + config.disable_monkey_patching! + + config.expect_with :rspec do |c| + c.syntax = :expect + end +end |
