Sha256: 6fe116c6d9082ecb19737024137402e3eceec6acfc3ae4e2f86f1ccb38ed1caa

Contents?: true

Size: 352 Bytes

Versions: 34

Compression:

Stored size: 352 Bytes

Contents

require_relative '../../spec_helper'
require_lib 'reek/context/root_context'

RSpec.describe Reek::Context::RootContext do
  context 'full_name' do
    it 'reports full context' do
      ast = Reek::Source::SourceCode.from('foo = 1').syntax_tree
      root = Reek::Context::RootContext.new(ast)
      expect(root.full_name).to eq('')
    end
  end
end

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
reek-4.4.1 spec/reek/context/root_context_spec.rb
reek-4.4.0 spec/reek/context/root_context_spec.rb
reek-4.3.0 spec/reek/context/root_context_spec.rb
reek-4.2.5 spec/reek/context/root_context_spec.rb
reek-4.2.4 spec/reek/context/root_context_spec.rb
reek-4.2.3 spec/reek/context/root_context_spec.rb
reek-4.2.2 spec/reek/context/root_context_spec.rb
reek-4.2.1 spec/reek/context/root_context_spec.rb
reek-4.2.0 spec/reek/context/root_context_spec.rb
reek-4.1.1 spec/reek/context/root_context_spec.rb
reek-4.1.0 spec/reek/context/root_context_spec.rb
reek-4.0.5 spec/reek/context/root_context_spec.rb
reek-4.0.4 spec/reek/context/root_context_spec.rb
reek-4.0.3 spec/reek/context/root_context_spec.rb
reek-4.0.2 spec/reek/context/root_context_spec.rb
reek-4.0.1 spec/reek/context/root_context_spec.rb
reek-4.0.0 spec/reek/context/root_context_spec.rb
reek-4.0.0.pre1 spec/reek/context/root_context_spec.rb
reek-3.11 spec/reek/context/root_context_spec.rb
reek-3.10.2 spec/reek/context/root_context_spec.rb