Sha256: 959a89a2d63feb4ea68704939dd87e06dbf2019eb7743347d76c7295fb60d24c
Contents?: true
Size: 635 Bytes
Versions: 2
Compression:
Stored size: 635 Bytes
Contents
require 'spec_helper' describe 'Sourceable, Unit', :unit_test => true do let(:nodule) { CukeModeler::Sourceable } let(:model) { Object.new.extend(nodule) } describe 'unique behavior' do it 'has a source line' do expect(model).to respond_to(:source_line) end it 'can change its source line' do expect(model).to respond_to(:source_line=) model.source_line = :some_source_line expect(model.source_line).to eq(:some_source_line) model.source_line = :some_other_source_line expect(model.source_line).to eq(:some_other_source_line) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
cuke_modeler-1.0.1 | spec/unit/sourceable_unit_spec.rb |
cuke_modeler-1.0.0 | spec/unit/sourceable_unit_spec.rb |