Sha256: c9a506cbb839ea293e5588becd03969a5ade480c4a502d98553de307bc585cc5
Contents?: true
Size: 742 Bytes
Versions: 1
Compression:
Stored size: 742 Bytes
Contents
require 'spec_helper' shared_examples_for 'a test element' do # clazz must be defined by the calling file before(:each) do @element = clazz.new end it 'has steps - #steps' do @element.should respond_to(:steps) end it 'can get and set its steps - #steps, #steps=' do @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 - #contains' do steps = [:step_1, :step_2, :step_3] @element.steps = steps steps.each { |step| @element.contains.should include(step) } end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cuke_modeler-0.3.0 | spec/unit/test_element_unit_specs.rb |