Skip to content
This repository has been archived by the owner on Oct 24, 2023. It is now read-only.

Commit

Permalink
remove spork dependency and remove require relatives from tests
Browse files Browse the repository at this point in the history
  • Loading branch information
citrus committed Dec 13, 2011
1 parent 6f198fe commit 90608bf
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 27 deletions.
2 changes: 1 addition & 1 deletion lib/spree_essential_press.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
module SpreeEssentialPress

def self.tab
[:press, { :route => :admin_press_index }]
{ :label => 'Press', :route => :admin_press_index }
end

def self.sub_tab
Expand Down
2 changes: 0 additions & 2 deletions spree_essential_press.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,5 @@ Gem::Specification.new do |s|
s.add_development_dependency('capybara', '>= 1.1.2')
s.add_development_dependency('selenium-webdriver', '>= 2.15.0')
s.add_development_dependency('sqlite3', '>= 1.3.3')
s.add_development_dependency('spork', '>= 0.9.0.rc9')
s.add_development_dependency('spork-testunit', '>= 0.0.7')

end
11 changes: 0 additions & 11 deletions test/support/helper_methods.rb

This file was deleted.

14 changes: 3 additions & 11 deletions test/test_helper.rb
Original file line number Diff line number Diff line change
@@ -1,15 +1,7 @@
# Configure Rails Envinronment
ENV["RAILS_ENV"] = "test"

require 'rubygems'
require 'spork'
require File.expand_path("../dummy/config/environment.rb", __FILE__)
require 'spree_essentials/test_helper'

Spork.prefork do
require File.expand_path("../dummy/config/environment.rb", __FILE__)
require 'spree_essentials/test_helper'
end

Spork.each_run do
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
include HelperMethods
end
require File.expand_path("../support/factories.rb", __FILE__)
2 changes: 1 addition & 1 deletion test/unit/press_image_test.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require_relative '../test_helper'
require 'test_helper'

class PressImageTest < Test::Unit::TestCase

Expand Down
2 changes: 1 addition & 1 deletion test/unit/press_test.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require_relative '../test_helper'
require 'test_helper'

class PressTest < Test::Unit::TestCase

Expand Down

0 comments on commit 90608bf

Please sign in to comment.