Sha256: f142e6acbbc3302b9bd7a6d812561b869c723c0ea181548abb4ff455a3c3b24d

Contents?: true

Size: 547 Bytes

Versions: 2

Compression:

Stored size: 547 Bytes

Contents

require 'spec_helper'


describe 'Stepped, Unit', :unit_test => true do

  let(:nodule) { CukeModeler::Stepped }
  let(:stepped_model) { Object.new.extend(nodule) }


  it 'has steps' do
    expect(stepped_model).to respond_to(:steps)
  end

  it 'can change its steps' do
    expect(stepped_model).to respond_to(:steps=)

    stepped_model.steps = :some_steps
    expect(stepped_model.steps).to eq(:some_steps)
    stepped_model.steps = :some_other_steps
    expect(stepped_model.steps).to eq(:some_other_steps)
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
cuke_modeler-1.0.1 spec/unit/stepped_unit_spec.rb
cuke_modeler-1.0.0 spec/unit/stepped_unit_spec.rb