Sha256: c3a5adad8b216195101570181311cbc4b65f8a492600800813ac7330cc5481b7
Contents?: true
Size: 817 Bytes
Versions: 2
Compression:
Stored size: 817 Bytes
Contents
require 'turnip/step_loader' describe Turnip::StepLoader do describe '.load_steps' do context 'when the steps have not been loaded' do before { Turnip::StepLoader.steps_loaded = false } it 'loads all the steps' do Turnip::StepLoader.should_receive :load_step_files Turnip::StepLoader.load_steps end it 'marks the steps as loaded' do Turnip::StepLoader.stub :load_step_files Turnip::StepLoader.load_steps Turnip::StepLoader.should be_steps_loaded end end context 'when the steps have been loaded' do before { Turnip::StepLoader.steps_loaded = true } it 'does not reload all the steps' do Turnip::StepLoader.should_not_receive :load_step_files Turnip::StepLoader.load_steps end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
turnip-0.3.1 | spec/step_loader_spec.rb |
turnip-0.3.0 | spec/step_loader_spec.rb |