<commit_before>require 'spec_helper'

require_relative '../../lib/planet_defense/player'
require_relative '../../lib/planet_defense/play_state'
require_relative '../../lib/planet_defense/main'

describe PlanetDefense do
  
  before(:all) do
    @g = PlanetDefense::GameWindow.new
  end

  it { @g.should respond_to :close }
  it { @g.should respond_to :fps }
  it { @g.should respond_to :update }
  it { @g.should respond_to :draw }
  it { @g.should respond_to :root }
  it { @g.should respond_to :game_state_manager }
  it { @g.should respond_to :factor }
  it { @g.should respond_to :cursor }
  it { @g.should respond_to :root }
  it { @g.should respond_to :milliseconds_since_last_tick }
  
  it 'Window should be initialized' do
    @g.should be_kind_of(PlanetDefense::GameWindow)
  end
  
  it 'Window should have correct dimensions' do
    @g.width.should == 1024
    @g.height.should == 768
  end
end<commit_msg>modularizing the spec<commit_after>require 'spec_helper'

require_relative '../../lib/planet_defense/player'
require_relative '../../lib/planet_defense/play_state'
require_relative '../../lib/planet_defense/main'

module PlanetDefense
  describe GameWindow do
  
    before(:all) do
      @g = PlanetDefense::GameWindow.new
    end

    it { @g.should respond_to :close }
    it { @g.should respond_to :fps }
    it { @g.should respond_to :update }
    it { @g.should respond_to :draw }
    it { @g.should respond_to :root }
    it { @g.should respond_to :game_state_manager }
    it { @g.should respond_to :factor }
    it { @g.should respond_to :cursor }
    it { @g.should respond_to :root }
    it { @g.should respond_to :milliseconds_since_last_tick }
  
    it 'Window should be initialized' do
      @g.should be_kind_of(PlanetDefense::GameWindow)
    end
  
    it 'Window should have correct dimensions' do
      @g.width.should == 1024
      @g.height.should == 768
    end
  end
end
{'fraction_non_alphanumeric': 0.11820083682008369, 'fraction_numerical': 0.007322175732217573, 'mean_word_length': 3.2511111111111113, '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': '4417174', 'n_tokens_mistral': 672, 'n_tokens_neox': 650, 'n_words': 160}