Sha256: 68fd9466ae3ebf3c6710633f8b178166506da16808b6d44493f8080efa2737bc

Contents?: true

Size: 548 Bytes

Versions: 13

Compression:

Stored size: 548 Bytes

Contents

require "#{File.dirname(__FILE__)}/../spec_helper"


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

  let(:nodule) { CukeModeler::Named }
  let(:named_model) { Object.new.extend(nodule) }


  it 'has a name' do
    expect(named_model).to respond_to(:name)
  end

  it 'can change its name' do
    expect(named_model).to respond_to(:name=)

    named_model.name = :some_name
    expect(named_model.name).to eq(:some_name)
    named_model.name = :some_other_name
    expect(named_model.name).to eq(:some_other_name)
  end

end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
cuke_modeler-2.1.0 testing/rspec/spec/unit/named_unit_spec.rb
cuke_modeler-2.0.0 testing/rspec/spec/unit/named_unit_spec.rb
cuke_modeler-1.5.1 testing/rspec/spec/unit/named_unit_spec.rb
cuke_modeler-1.5.0 testing/rspec/spec/unit/named_unit_spec.rb
cuke_modeler-1.4.0 testing/rspec/spec/unit/named_unit_spec.rb
cuke_modeler-1.3.0 testing/rspec/spec/unit/named_unit_spec.rb
cuke_modeler-1.2.1 testing/rspec/spec/unit/named_unit_spec.rb
cuke_modeler-1.2.0 testing/rspec/spec/unit/named_unit_spec.rb
cuke_modeler-1.1.1 testing/rspec/spec/unit/named_unit_spec.rb
cuke_modeler-1.1.0 testing/rspec/spec/unit/named_unit_spec.rb
cuke_modeler-1.0.4 testing/rspec/spec/unit/named_unit_spec.rb
cuke_modeler-1.0.3 testing/rspec/spec/unit/named_unit_spec.rb
cuke_modeler-1.0.2 testing/rspec/spec/unit/named_unit_spec.rb