diff options
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 |
