From 8185d66664367eab60edb3ab27103d22c1631769 Mon Sep 17 00:00:00 2001 From: a14m Date: Fri, 27 Nov 2020 17:02:40 +0100 Subject: Initial commit of the ruby gem --- CLI/ruby/spec/game_of_life_spec.rb | 11 +++++++++++ CLI/ruby/spec/spec_helper.rb | 16 ++++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 CLI/ruby/spec/game_of_life_spec.rb create mode 100644 CLI/ruby/spec/spec_helper.rb (limited to 'CLI/ruby/spec') 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 -- cgit v1.2.3