Skip to content

Commit

Permalink
Updated .gitignore. Updated spec file require statements. RSpec
Browse files Browse the repository at this point in the history
automatically includes ./spec in the path.
  • Loading branch information
jameskbride committed Dec 31, 2011
1 parent 94dc735 commit 8476928
Show file tree
Hide file tree
Showing 39 changed files with 41 additions and 38 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
tmp/**/*
*.gem
.project
.buildpath
Gemfile.lock
2 changes: 1 addition & 1 deletion spec/ruby_warrior/abilities/attack_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require File.dirname(__FILE__) + '/../../spec_helper'
require 'spec_helper'

describe RubyWarrior::Abilities::Attack do
before(:each) do
Expand Down
2 changes: 1 addition & 1 deletion spec/ruby_warrior/abilities/base_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require File.dirname(__FILE__) + '/../../spec_helper'
require 'spec_helper'

describe RubyWarrior::Abilities::Base do
before(:each) do
Expand Down
2 changes: 1 addition & 1 deletion spec/ruby_warrior/abilities/bind_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require File.dirname(__FILE__) + '/../../spec_helper'
require 'spec_helper'

describe RubyWarrior::Abilities::Bind do
before(:each) do
Expand Down
2 changes: 1 addition & 1 deletion spec/ruby_warrior/abilities/direction_of_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require File.dirname(__FILE__) + '/../../spec_helper'
require 'spec_helper'

describe RubyWarrior::Abilities::DirectionOf do
before(:each) do
Expand Down
2 changes: 1 addition & 1 deletion spec/ruby_warrior/abilities/direction_of_stairs_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require File.dirname(__FILE__) + '/../../spec_helper'
require 'spec_helper'

describe RubyWarrior::Abilities::DirectionOfStairs do
before(:each) do
Expand Down
2 changes: 1 addition & 1 deletion spec/ruby_warrior/abilities/distance_of_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require File.dirname(__FILE__) + '/../../spec_helper'
require 'spec_helper'

describe RubyWarrior::Abilities::DistanceOf do
before(:each) do
Expand Down
2 changes: 1 addition & 1 deletion spec/ruby_warrior/abilities/explode_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require File.dirname(__FILE__) + '/../../spec_helper'
require 'spec_helper'

describe RubyWarrior::Abilities::Explode do
before(:each) do
Expand Down
2 changes: 1 addition & 1 deletion spec/ruby_warrior/abilities/feel_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require File.dirname(__FILE__) + '/../../spec_helper'
require 'spec_helper'

describe RubyWarrior::Abilities::Feel do
before(:each) do
Expand Down
2 changes: 1 addition & 1 deletion spec/ruby_warrior/abilities/form_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require File.dirname(__FILE__) + '/../../spec_helper'
require 'spec_helper'

describe RubyWarrior::Abilities::Form do
before(:each) do
Expand Down
2 changes: 1 addition & 1 deletion spec/ruby_warrior/abilities/health_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require File.dirname(__FILE__) + '/../../spec_helper'
require 'spec_helper'

describe RubyWarrior::Abilities::Health do
before(:each) do
Expand Down
2 changes: 1 addition & 1 deletion spec/ruby_warrior/abilities/listen_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require File.dirname(__FILE__) + '/../../spec_helper'
require 'spec_helper'

describe RubyWarrior::Abilities::Listen do
before(:each) do
Expand Down
2 changes: 1 addition & 1 deletion spec/ruby_warrior/abilities/look_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require File.dirname(__FILE__) + '/../../spec_helper'
require 'spec_helper'

describe RubyWarrior::Abilities::Look do
before(:each) do
Expand Down
2 changes: 1 addition & 1 deletion spec/ruby_warrior/abilities/pivot_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require File.dirname(__FILE__) + '/../../spec_helper'
require 'spec_helper'

describe RubyWarrior::Abilities::Pivot do
before(:each) do
Expand Down
2 changes: 1 addition & 1 deletion spec/ruby_warrior/abilities/rescue_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require File.dirname(__FILE__) + '/../../spec_helper'
require 'spec_helper'

describe RubyWarrior::Abilities::Rescue do
before(:each) do
Expand Down
2 changes: 1 addition & 1 deletion spec/ruby_warrior/abilities/rest_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require File.dirname(__FILE__) + '/../../spec_helper'
require 'spec_helper'

describe RubyWarrior::Abilities::Rest do
before(:each) do
Expand Down
2 changes: 1 addition & 1 deletion spec/ruby_warrior/abilities/shoot_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require File.dirname(__FILE__) + '/../../spec_helper'
require 'spec_helper'

describe RubyWarrior::Abilities::Shoot do
before(:each) do
Expand Down
2 changes: 1 addition & 1 deletion spec/ruby_warrior/abilities/throw_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require File.dirname(__FILE__) + '/../../spec_helper'
require 'spec_helper'

describe RubyWarrior::Abilities::Detonate do
before(:each) do
Expand Down
2 changes: 1 addition & 1 deletion spec/ruby_warrior/abilities/walk_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require File.dirname(__FILE__) + '/../../spec_helper'
require 'spec_helper'

describe RubyWarrior::Abilities::Walk do
before(:each) do
Expand Down
2 changes: 1 addition & 1 deletion spec/ruby_warrior/core_additions_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require File.dirname(__FILE__) + '/../spec_helper'
require 'spec_helper'

describe String do
it "should wrap text at white space when over a specific character length" do
Expand Down
2 changes: 1 addition & 1 deletion spec/ruby_warrior/floor_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require File.dirname(__FILE__) + '/../spec_helper'
require 'spec_helper'

describe RubyWarrior::Floor do
describe "2x3" do
Expand Down
2 changes: 1 addition & 1 deletion spec/ruby_warrior/game_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require File.dirname(__FILE__) + '/../spec_helper'
require 'spec_helper'

describe RubyWarrior::Game do
before(:each) do
Expand Down
2 changes: 1 addition & 1 deletion spec/ruby_warrior/level_loader_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require File.dirname(__FILE__) + '/../spec_helper'
require 'spec_helper'

describe RubyWarrior::LevelLoader do
describe "with profile" do
Expand Down
2 changes: 1 addition & 1 deletion spec/ruby_warrior/level_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require File.dirname(__FILE__) + '/../spec_helper'
require 'spec_helper'
require 'set'

describe RubyWarrior::Level do
Expand Down
2 changes: 1 addition & 1 deletion spec/ruby_warrior/player_generator_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require File.dirname(__FILE__) + '/../spec_helper'
require 'spec_helper'

describe RubyWarrior::PlayerGenerator do
before(:each) do
Expand Down
2 changes: 1 addition & 1 deletion spec/ruby_warrior/position_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require File.dirname(__FILE__) + '/../spec_helper'
require 'spec_helper'

describe RubyWarrior::Position do
before(:each) do
Expand Down
2 changes: 1 addition & 1 deletion spec/ruby_warrior/profile_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require File.dirname(__FILE__) + '/../spec_helper'
require 'spec_helper'

describe RubyWarrior::Profile do
before(:each) do
Expand Down
2 changes: 1 addition & 1 deletion spec/ruby_warrior/space_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require File.dirname(__FILE__) + '/../spec_helper'
require 'spec_helper'

describe RubyWarrior::Space do
before(:each) do
Expand Down
2 changes: 1 addition & 1 deletion spec/ruby_warrior/tower_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require File.dirname(__FILE__) + '/../spec_helper'
require 'spec_helper'

describe RubyWarrior::Tower do
before(:each) do
Expand Down
2 changes: 1 addition & 1 deletion spec/ruby_warrior/turn_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require File.dirname(__FILE__) + '/../spec_helper'
require 'spec_helper'

describe RubyWarrior::Turn do
describe "with actions" do
Expand Down
2 changes: 1 addition & 1 deletion spec/ruby_warrior/ui_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require File.dirname(__FILE__) + '/../spec_helper'
require 'spec_helper'

describe RubyWarrior::UI do
before(:each) do
Expand Down
2 changes: 1 addition & 1 deletion spec/ruby_warrior/units/archer_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require File.dirname(__FILE__) + '/../../spec_helper'
require 'spec_helper'

describe RubyWarrior::Units::Archer do
before(:each) do
Expand Down
2 changes: 1 addition & 1 deletion spec/ruby_warrior/units/base_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require File.dirname(__FILE__) + '/../../spec_helper'
require 'spec_helper'

describe RubyWarrior::Units::Base do
before(:each) do
Expand Down
2 changes: 1 addition & 1 deletion spec/ruby_warrior/units/captive_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require File.dirname(__FILE__) + '/../../spec_helper'
require 'spec_helper'

describe RubyWarrior::Units::Captive do
before(:each) do
Expand Down
2 changes: 1 addition & 1 deletion spec/ruby_warrior/units/golem_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require File.dirname(__FILE__) + '/../../spec_helper'
require 'spec_helper'

describe RubyWarrior::Units::Golem do
before(:each) do
Expand Down
2 changes: 1 addition & 1 deletion spec/ruby_warrior/units/sludge_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require File.dirname(__FILE__) + '/../../spec_helper'
require 'spec_helper'

describe RubyWarrior::Units::Sludge do
before(:each) do
Expand Down
2 changes: 1 addition & 1 deletion spec/ruby_warrior/units/thick_sludge_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require File.dirname(__FILE__) + '/../../spec_helper'
require 'spec_helper'

describe RubyWarrior::Units::ThickSludge do
before(:each) do
Expand Down
2 changes: 1 addition & 1 deletion spec/ruby_warrior/units/warrior_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require File.dirname(__FILE__) + '/../../spec_helper'
require 'spec_helper'

class Player
def turn(warrior)
Expand Down
2 changes: 1 addition & 1 deletion spec/ruby_warrior/units/wizard_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require File.dirname(__FILE__) + '/../../spec_helper'
require 'spec_helper'

describe RubyWarrior::Units::Wizard do
before(:each) do
Expand Down

0 comments on commit 8476928

Please sign in to comment.