Sha256: 2e43995b6aedd515014a15d627790f3ccc21991f52352947a80bc87bfafc7e08

Contents?: true

Size: 798 Bytes

Versions: 7

Compression:

Stored size: 798 Bytes

Contents

# File: eo-line_spec.rb

require_relative '../../spec_helper'

# Load the classes under test
require_relative '../../../lib/macros4cuke/templating/eo-line'

module Macros4Cuke
module Templating # Open this namespace to get rid of module qualifier prefixes
describe EOLine do
  subject { EOLine.new }

  context 'Creation and initialization:' do
    it 'should be created without argument' do
      expect { EOLine.new }.not_to raise_error
    end   
  end # context
  
  context 'Provided services:' do
    it 'should render a new line' do
      context = double('fake_context')
      locals = double('fake_locals')
      
      expect(subject.render(context, locals)).to eq("\n")
    end
  
  end # context  
end # describe
end # module
end # module

# End of file

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
macros4cuke-0.5.14 spec/macros4cuke/templating/eo-line_spec.rb
macros4cuke-0.5.13 spec/macros4cuke/templating/eo-line_spec.rb
macros4cuke-0.5.12 spec/macros4cuke/templating/eo-line_spec.rb
macros4cuke-0.5.11 spec/macros4cuke/templating/eo-line_spec.rb
macros4cuke-0.5.10 spec/macros4cuke/templating/eo-line_spec.rb
macros4cuke-0.5.09 spec/macros4cuke/templating/eo-line_spec.rb
macros4cuke-0.5.08 spec/macros4cuke/templating/eo-line_spec.rb