Sha256: 25ec8a04e8ee030fcbe499a0aa393ef59ce9546c372cc25d099788d5400e4f09
Contents?: true
Size: 929 Bytes
Versions: 2
Compression:
Stored size: 929 Bytes
Contents
describe Elasticity::JobFlowStep do class FakeStep include Elasticity::JobFlowStep end subject { FakeStep.new } describe '#to_aws_step' do it 'should take a job flow as context' do subject.should respond_to(:to_aws_step).with(1).argument end it 'should raise an error by default' do expect { subject.to_aws_step(nil) }.to raise_error(RuntimeError, '#to_aws_step is required to be defined on all job flow steps.') end end describe '.requires_installation?' do it 'should be false by default' do FakeStep.requires_installation?.should be_false end end describe '.aws_installation_step' do it 'should raise an error by default' do expect { FakeStep.aws_installation_step }.to raise_error(RuntimeError, '.aws_installation_step is required to be defined when a step requires installation (e.g. Pig, Hive).') end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
elasticity-2.1 | spec/lib/elasticity/job_flow_step_spec.rb |
elasticity-2.0 | spec/lib/elasticity/job_flow_step_spec.rb |