Class: Zeta::RSpec
- Inherits:
-
Object
- Object
- Zeta::RSpec
- Defined in:
- lib/zeta/rspec.rb
Overview
Include this file in your spec/spec_helper.rb
Class Method Summary collapse
Class Method Details
.ensure_contracts_present(force = false) ⇒ Object
6 7 8 9 10 11 |
# File 'lib/zeta/rspec.rb', line 6 def self.ensure_contracts_present(force = false) Zeta.verbose = false if force || !File.directory?(Zeta.cache_dir) update_contracts end end |
.run ⇒ Object
29 30 31 32 33 34 |
# File 'lib/zeta/rspec.rb', line 29 def self.run Zeta.verbose = false ensure_contracts_present Zeta.update_own_contracts Zeta.contracts_fulfilled?(Lacerda::Reporters::RSpec.new) end |
.update_contracts ⇒ Object
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
# File 'lib/zeta/rspec.rb', line 13 def self.update_contracts RSpec.describe "Update Zeta infrastructure once" do it "download infrastructure" do expect{ Zeta.config }.to_not raise_error end it "download specifications" do expect{ Zeta.update_contracts }.to_not raise_error end end end |