Sha256: c1e5d6b178de2c36dbf8d03027e9f75fee7624443d6db8ead1317a9c89cca74a
Contents?: true
Size: 519 Bytes
Versions: 2
Compression:
Stored size: 519 Bytes
Contents
require '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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
cuke_modeler-1.0.1 | spec/unit/named_unit_spec.rb |
cuke_modeler-1.0.0 | spec/unit/named_unit_spec.rb |