<commit_before>require 'spec_helper'

module PlanetDefense
  describe MenuState do
  
    before :all do
      @g = PlanetDefense::GameWindow.new
    end
    
    after :all do
      @g.close
    end
    
    it 'should be correct gamestate' do
      $window.current_game_state.should be_kind_of(PlanetDefense::MenuState)
    end

  end
end<commit_msg>Testing back button on options screen<commit_after>require 'spec_helper'

module PlanetDefense
  describe MenuState do
  
    before :all do
      @g = PlanetDefense::GameWindow.new
    end
    
    after :all do
      @g.close
    end
    
    it 'should be correct gamestate' do
      $window.current_game_state.should be_kind_of(PlanetDefense::MenuState)
    end

    it 'should return to main menu when "Back" is selected' do
      @g.push_game_state(OptionsState)
      @cs.move_down
      @cs.move_down
      @cs.go
      $window.current_game_state.should be_kind_of(PlanetDefense::MenuState)
    end

  end
end
{'fraction_non_alphanumeric': 0.06914344685242518, 'fraction_numerical': 0.0, 'mean_word_length': 2.77431906614786, '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': '2854102', 'n_tokens_mistral': 325, 'n_tokens_neox': 317, 'n_words': 80}