<commit_before>require File.join File.dirname(__FILE__), '..', 'spec_helper'

describe ActsAsDashboard::Config do
  it 'makes its "widgets" instance variable readable' do
    config = ActsAsDashboard::Config.new
    config.widgets.should equal config.instance_variable_get(:@widgets)
  end

  describe 'initialization' do
    it 'creates an array of widgets' do
      config = ActsAsDashboard::Config.new
      config.instance_variable_get(:@widgets).should == []
    end
  end
end<commit_msg>Moved a spec around to stay consistent in how other specs are written.<commit_after>require File.join File.dirname(__FILE__), '..', 'spec_helper'

describe ActsAsDashboard::Config do
  describe 'initialization' do # {{{
    it 'creates an array of widgets' do
      config = ActsAsDashboard::Config.new
      config.instance_variable_get(:@widgets).should == []
    end
  end # }}}

  describe 'attributes' do # {{{
    it 'returns the "widgets" attribute' do
      config = ActsAsDashboard::Config.new
      config.widgets.should equal config.instance_variable_get(:@widgets)
    end
  end # }}}
end
{'fraction_non_alphanumeric': 0.10887465690759378, 'fraction_numerical': 0.0, 'mean_word_length': 4.064814814814815, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7042986', 'n_tokens_mistral': 339, 'n_tokens_neox': 323, 'n_words': 87}