Skip to content

Commit

Permalink
simplified directory structure for specs in order to work in harmony …
Browse files Browse the repository at this point in the history
…with the rspec textmate bundle
  • Loading branch information
Overbryd committed Jul 20, 2009
1 parent 9d1109a commit ac01940
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
3 changes: 2 additions & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ rescue LoadError
end

task :spec do
sh "spec spec/unit/* --format specdoc --color"
spec_files = Dir.glob('spec/**/*_spec.rb').join(' ')
sh "spec #{spec_files} --format specdoc --color"
end
task :default => :spec

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require File.dirname(__FILE__) + '/../../spec_helper'
require File.dirname(__FILE__) + '/../spec_helper'

describe MiteCmd::Application, 'new' do
it "should load the configuration for MiteCmd" do
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require File.expand_path(File.dirname(__FILE__) + '/../../spec_helper')
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')

describe MiteCmd::Autocomplete, 'new' do
it "should set calling_script" do
Expand Down Expand Up @@ -91,8 +91,8 @@
end

it "should ignore the case of the typed argument" do
#vvvv
ENV['COMP_LINE'] = "./test_command argument1 holy \"I love spaces\""
# COMP_POINT 27 v
ENV['COMP_LINE'] = "/.test_command argument1 holy \"I love spaces\""
ENV['COMP_POINT'] = '27'
@autocomplete.suggestions.should == ['Holy', 'Holy Moly', 'Holy Grail']
end
Expand All @@ -101,7 +101,6 @@
@autocomplete.stub!(:current_argument_index).and_return 50
@autocomplete.suggestions.should == []
end

end

end
2 changes: 1 addition & 1 deletion spec/unit/mighty_mite_spec.rb → spec/mite_cmd_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
require File.expand_path(File.dirname(__FILE__) + '/spec_helper')

describe MiteCmd, 'load_configuration' do
def fake_configuration
Expand Down
2 changes: 1 addition & 1 deletion spec/unit/mite_ext_spec.rb → spec/mite_ext_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
require File.expand_path(File.dirname(__FILE__) + '/spec_helper')

describe Mite, 'account_url' do
it "should return the url for this account" do
Expand Down
2 changes: 1 addition & 1 deletion spec/unit/string_ext_spec.rb → spec/string_ext_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
require File.expand_path(File.dirname(__FILE__) + '/spec_helper')

describe String, 'quote' do
it "should wrap a string in quotes" do
Expand Down

0 comments on commit ac01940

Please sign in to comment.