Skip to content

Commit

Permalink
Merge pull request #745 from wilkie/bugfix/faster-tests-through-rakefile
Browse files Browse the repository at this point in the history
Bugfix/faster tests through rakefile
  • Loading branch information
steveklabnik committed Feb 19, 2013
2 parents 6b6d6d7 + 6d7d797 commit d925510
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 10 deletions.
2 changes: 1 addition & 1 deletion Gemfile.lock
Expand Up @@ -145,7 +145,7 @@ GEM
metaclass (0.0.1) metaclass (0.0.1)
mime-types (1.21) mime-types (1.21)
minitest (4.2.0) minitest (4.2.0)
mocha (0.13.0) mocha (0.13.2)
metaclass (~> 0.0.1) metaclass (~> 0.0.1)
mongo (1.7.0) mongo (1.7.0)
bson (~> 1.7.0) bson (~> 1.7.0)
Expand Down
9 changes: 6 additions & 3 deletions Rakefile
Expand Up @@ -2,6 +2,9 @@
# Add your own tasks in files placed in lib/tasks ending in .rake, # Add your own tasks in files placed in lib/tasks ending in .rake,
# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake. # for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.


require File.expand_path('../config/application', __FILE__) if ARGV[0].start_with?('test')

load 'lib/tasks/minitest.rake'
RstatUs::Application.load_tasks else
require File.expand_path('../config/application', __FILE__)
RstatUs::Application.load_tasks
end
2 changes: 1 addition & 1 deletion test/models/finger_data_test.rb
@@ -1,5 +1,5 @@
require 'minitest/autorun' require 'minitest/autorun'
require 'mocha' require 'mocha/setup'


require_relative '../../app/models/finger_data' require_relative '../../app/models/finger_data'


Expand Down
4 changes: 2 additions & 2 deletions test/services/feed_service_test.rb
@@ -1,6 +1,6 @@
require_relative '../test_helper' require_relative '../test_helper'


require 'mocha' require 'mocha/setup'


describe FeedService do describe FeedService do
include TestHelper include TestHelper
Expand Down Expand Up @@ -84,4 +84,4 @@
end end
end end
end end
end end
4 changes: 2 additions & 2 deletions test/services/finger_service_test.rb
@@ -1,5 +1,5 @@
require 'minitest/autorun' require 'minitest/autorun'
require 'mocha' require 'mocha/setup'


require_relative '../../app/services/finger_service' require_relative '../../app/services/finger_service'
require_relative '../../app/models/feed_data' require_relative '../../app/models/feed_data'
Expand Down Expand Up @@ -73,4 +73,4 @@ class InvalidSubscribeTo < StandardError; end
end end
end end
end end
end end
2 changes: 1 addition & 1 deletion test/services/subscriber_to_feed_data_converter_test.rb
@@ -1,5 +1,5 @@
require 'minitest/autorun' require 'minitest/autorun'
require 'mocha' require 'mocha/setup'
require 'socket' require 'socket'
require_relative '../../app/services/subscriber_to_feed_data_converter' require_relative '../../app/services/subscriber_to_feed_data_converter'


Expand Down

0 comments on commit d925510

Please sign in to comment.