Project

rspec-qbec

0.0
Low commit activity in last 3 years
No release in over a year
RSpec::Qbec add helpers to run and read from qbec
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0

Runtime

~> 3
 Project Readme

RSpec::Qbec

Init

# spec_helper.rb

# Example:
require 'rspec/qbec'

RSpec.configure do |config|
  config.qbec_root = 'qbec/project'
end

Example test

  let!(:cmd) { run_qbec('prod', '-c namespace') }
  let!(:namespaces) { yaml(cmd[0], 'Namespaces') }

  it 'have size' do
    expect(namespaces.size).to eq(1)
  end

  it 'have name' do
    expect(namespaces.metadata.name).to eq('myns')
  end