Sha256: d11d35095c512e91a378190ddf159156e789b0216faa4788c5d7048a42dc202b

Contents?: true

Size: 664 Bytes

Versions: 13

Compression:

Stored size: 664 Bytes

Contents

require "#{File.dirname(__FILE__)}/../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

13 entries across 13 versions & 1 rubygems

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