Sha256: c16f4c99361a535766b0d7eb6e059f15d2e2eb0ce5cfc8b000ce3d9edd17f126
Contents?: true
Size: 1.17 KB
Versions: 13
Compression:
Stored size: 1.17 KB
Contents
# frozen_string_literal: true require_relative 'rspec/chef' require_relative 'rspec/inspec' require_relative 'rspec/ruby' # DeployRubygem - deploy a gem using rake # Containing a class module DeployRubygem # Using Project to deploy and manage Project module RSpecTesting def help_rspec(helper) helper.extend DeployRubygem 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 yield(config) if block_given? end end def testing_project(gem_obj) RSpec.describe "Testing gem #{gem_obj.project_name}" do it 'should not be null' do expect(gem_obj).not_to be nil end it 'should be a Project' do expect(gem_obj).to be_kind_of(DeployRubygem::Project) end it 'should get a Project Name' do expect(gem_obj.project_name).to eq(gem_obj.project_name) end end end end end
Version data entries
13 entries across 13 versions & 1 rubygems