diff options
Diffstat (limited to 'vendor/gems/gitlab_active_record/spec')
-rw-r--r-- | vendor/gems/gitlab_active_record/spec/gitlab_active_record_spec.rb | 7 | ||||
-rw-r--r-- | vendor/gems/gitlab_active_record/spec/spec_helper.rb | 15 |
2 files changed, 22 insertions, 0 deletions
diff --git a/vendor/gems/gitlab_active_record/spec/gitlab_active_record_spec.rb b/vendor/gems/gitlab_active_record/spec/gitlab_active_record_spec.rb new file mode 100644 index 00000000000..d9263a08dfd --- /dev/null +++ b/vendor/gems/gitlab_active_record/spec/gitlab_active_record_spec.rb @@ -0,0 +1,7 @@ +# frozen_string_literal: true + +RSpec.describe GitlabActiveRecord do + it "has a version number" do + expect(GitlabActiveRecord::VERSION).not_to be nil + end +end diff --git a/vendor/gems/gitlab_active_record/spec/spec_helper.rb b/vendor/gems/gitlab_active_record/spec/spec_helper.rb new file mode 100644 index 00000000000..3cfabb45b1a --- /dev/null +++ b/vendor/gems/gitlab_active_record/spec/spec_helper.rb @@ -0,0 +1,15 @@ +# frozen_string_literal: true + +require "gitlab_active_record" + +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 |