Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

remove spork dependency and remove require relatives from tests

  • Loading branch information...
commit 90608bfb1f188ab9e2e5336fde66e3ee551fe20b 1 parent 6f198fe
@citrus authored
View
2  lib/spree_essential_press.rb
@@ -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
View
2  spree_essential_press.gemspec
@@ -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
View
11 test/support/helper_methods.rb
@@ -1,11 +0,0 @@
-module HelperMethods
-
- def random_email
- random_token.split("").insert(random_token.length / 2, "@").push(".com").join("")
- end
-
- def random_token
- Digest::SHA1.hexdigest((Time.now.to_i * rand).to_s)
- end
-
-end
View
14 test/test_helper.rb
@@ -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__)
View
2  test/unit/press_image_test.rb
@@ -1,4 +1,4 @@
-require_relative '../test_helper'
+require 'test_helper'
class PressImageTest < Test::Unit::TestCase
View
2  test/unit/press_test.rb
@@ -1,4 +1,4 @@
-require_relative '../test_helper'
+require 'test_helper'
class PressTest < Test::Unit::TestCase
Please sign in to comment.
Something went wrong with that request. Please try again.