Sha256: 87fc77aa007f0c4bbdcacc9ebe72be3650ef696e8cf7a33f4d27011a80acdcd7
Contents?: true
Size: 636 Bytes
Versions: 10
Compression:
Stored size: 636 Bytes
Contents
require 'simple_navigation/config_file' module SimpleNavigation describe ConfigFile do subject(:config_file) { ConfigFile.new(context) } let(:context) { :default } describe '#name' do context 'when the context is :default' do it 'returns navigation.rb' do expect(config_file.name).to eq 'navigation.rb' end end context 'when the context is different from :default' do let(:context) { :HelloWorld } it 'returns UNDERSCORED_CONTEXT_navigation.rb' do expect(config_file.name).to eq 'hello_world_navigation.rb' end end end end end
Version data entries
10 entries across 10 versions & 1 rubygems