Skip to content

Commit

Permalink
rename all tests to specs instead
Browse files Browse the repository at this point in the history
  • Loading branch information
reborg committed Dec 27, 2009
1 parent 9db53ac commit 233372d
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Rakefile
Expand Up @@ -29,7 +29,7 @@ task :build => "xcode:build:#{DEFAULT_TARGET}:#{DEFAULT_CONFIGURATION}"

desc 'Run the spec suite'
task :spec do
sh %{macruby spec/run_suite.rb}
sh %{macruby spec/all_spec.rb}
end

desc 'Deep clean of everything'
Expand Down
1 change: 1 addition & 0 deletions spec/all_spec.rb
@@ -0,0 +1 @@
Dir.glob(File.expand_path('../**/*_spec.rb', __FILE__)).each { |spec| require spec }
@@ -1,8 +1,8 @@
require File.dirname(__FILE__) + '/../test_helper'
require File.dirname(__FILE__) + '/../spec_helper'
require 'pomodoro'
framework 'coredata'

class PomodoroPersistenceTest < Test::Unit::TestCase
class PomodoroPersistenceSpec < Test::Unit::TestCase
it 'retrieve the count of saved pomodoros' do
Persistence.stubs(:object_model_from_bundle).returns(mom)
Pomodoro.count.should == 15
Expand Down
4 changes: 2 additions & 2 deletions spec/models/pomodoro_test.rb → spec/models/pomodoro_spec.rb
@@ -1,7 +1,7 @@
require File.dirname(__FILE__) + '/../test_helper'
require File.dirname(__FILE__) + '/../spec_helper'
require 'pomodoro'

class PomodoroTest < Test::Unit::TestCase
class PomodoroSpec < Test::Unit::TestCase
def setup
@pomodoro = Pomodoro.new
end
Expand Down
1 change: 0 additions & 1 deletion spec/run_suite.rb

This file was deleted.

File renamed without changes.

0 comments on commit 233372d

Please sign in to comment.