Sha256: 55b9caa98d19c997a84b07ac0d31d81267e120fd8b698b2030ae3993ed3391fb
Contents?: true
Size: 716 Bytes
Versions: 2
Compression:
Stored size: 716 Bytes
Contents
require 'spec_helper' shared_examples_for 'a test element' do # clazz must be defined by the calling file let(:element) { clazz.new } it 'has steps' do element.should respond_to(:steps) end it 'can change its steps' do expect(element).to respond_to(:steps=) element.steps = :some_steps element.steps.should == :some_steps element.steps = :some_other_steps element.steps.should == :some_other_steps end it 'starts with no steps' do element.steps.should == [] end it 'contains steps' do steps = [:step_1, :step_2, :step_3] element.steps = steps steps.each { |step| element.contains.should include(step) } end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
cuke_modeler-0.4.1 | spec/unit/test_element_unit_specs.rb |
cuke_modeler-0.4.0 | spec/unit/test_element_unit_specs.rb |