Sha256: 1beb4602ddacaa4985f10c1fa24cc1a89c05c9a6ce39b792780d5e2fc74631f6

Contents?: true

Size: 639 Bytes

Versions: 2

Compression:

Stored size: 639 Bytes

Contents

require 'spec_helper'


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

  let(:nodule) { CukeModeler::Described }
  let(:described_model) { Object.new.extend(nodule) }


  it 'has a description' do
    expect(described_model).to respond_to(:description)
  end

  it 'can change its description' do
    expect(described_model).to respond_to(:description=)

    described_model.description = :some_description
    expect(described_model.description).to eq(:some_description)
    described_model.description = :some_other_description
    expect(described_model.description).to eq(:some_other_description)
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

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