Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Gregory Bataille committed Feb 25, 2012
2 parents c405aa0 + 3e6b033 commit d0163b9
Show file tree
Hide file tree
Showing 40 changed files with 46 additions and 43 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
10 changes: 5 additions & 5 deletions features/step_definitions/interaction_steps.rb
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
Given /^a profile named "([^\"]*)" on "([^\"]*)"$/ do |name, tower|
When 'I run rubywarrior'
And 'I answer "y" to "create one?"'
And 'I choose "' + tower + '" for "tower"'
And 'I answer "' + name + '" to "name"'
Then 'I should see "generated"'
step 'I run rubywarrior'
step 'I answer "y" to "create one?"'
step 'I choose "' + tower + '" for "tower"'
step 'I answer "' + name + '" to "name"'
step 'I should see "generated"'
end

Given /^no profile at "([^\"]*)"$/ do |path|
Expand Down
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 d0163b9

Please sign in to comment.