mirror of
https://gitlab.com/components/sast.git
synced 2025-07-01 07:48:28 +02:00
Add .gitlab-ci.yml and test Ruby app
This commit is contained in:
parent
4150356e21
commit
85795eaed6
17 changed files with 240 additions and 8 deletions
11
src/ruby_gem/spec/ruby_gem_spec.rb
Normal file
11
src/ruby_gem/spec/ruby_gem_spec.rb
Normal file
|
@ -0,0 +1,11 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
RSpec.describe RubyGem do
|
||||
it "has a version number" do
|
||||
expect(RubyGem::VERSION).not_to be nil
|
||||
end
|
||||
|
||||
it "does something useful" do
|
||||
expect(false).to eq(true)
|
||||
end
|
||||
end
|
15
src/ruby_gem/spec/spec_helper.rb
Normal file
15
src/ruby_gem/spec/spec_helper.rb
Normal file
|
@ -0,0 +1,15 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
require "ruby_gem"
|
||||
|
||||
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
|
Loading…
Add table
Add a link
Reference in a new issue