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

Version Path
simple-navigation-4.4.0 spec/simple_navigation/config_file_spec.rb
simple-navigation-4.3.0 spec/simple_navigation/config_file_spec.rb
simple-navigation-4.2.0 spec/simple_navigation/config_file_spec.rb
simple-navigation-4.1.0 spec/simple_navigation/config_file_spec.rb
simple-navigation-4.0.5 spec/simple_navigation/config_file_spec.rb
simple-navigation-4.0.4 spec/simple_navigation/config_file_spec.rb
simple-navigation-4.0.3 spec/simple_navigation/config_file_spec.rb
simple-navigation-4.0.2 spec/simple_navigation/config_file_spec.rb
simple-navigation-4.0.1 spec/simple_navigation/config_file_spec.rb
simple-navigation-4.0.0 spec/simple_navigation/config_file_spec.rb