Sha256: ff0c97d511df13d27903ad6b1a7f23d7d2244274ae8488d26d405d3d9ec5bdbf
Contents?: true
Size: 1002 Bytes
Versions: 2
Compression:
Stored size: 1002 Bytes
Contents
# File: customization_spec.rb require_relative '../spec_helper' # Load the class under testing require_relative '../../lib/cukedep/customization' module Cukedep # Open module to get rid of long qualified names describe Customization do context 'Provided services:' do it 'should load hook handlers' do directory = File.join(File.dirname(__FILE__), '/sample_features') expect { subject.build_handlers(directory) }.not_to raise_error expect(subject.build_handlers(directory)).not_to be_nil handlers = subject.build_handlers(directory) expect(handlers[:before_hooks].size).to eq(2) expect(handlers[:after_hooks].size).to eq(2) end it 'should return nil when hook file absent' do directory = File.dirname(__FILE__) expect { subject.build_handlers(directory) }.not_to raise_error expect(subject.build_handlers(directory)).to be_nil end end # context end # describe end # module # End of file
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
cukedep-0.2.01 | spec/cukedep/customization_spec.rb |
cukedep-0.2.00 | spec/cukedep/customization_spec.rb |