Class: Zeta::RSpec

Inherits:
Object
  • Object
show all
Defined in:
lib/zeta/rspec.rb

Class Method Summary collapse

Class Method Details

.runObject



5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# File 'lib/zeta/rspec.rb', line 5

def self.run
  # Download Infrastructure
  Zeta.config
  Zeta.infrastructure

  # Update Contracts
  Zeta.verbose = false
  Zeta.update_contracts

  # Validate Infrastructure
  # NOTE: Expectations are defined by .contracts_fulfilled?
  #
  # Whats the structure of this expectations?
  # https://github.com/moviepilot/lacerda/blob/master/lib/lacerda/reporters/rspec.rb
  #
  Zeta.contracts_fulfilled?(Lacerda::Reporters::RSpec.new)
end