-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Removed spork. Moving to zeus and want less dependencies
- Loading branch information
Tim Glen
committed
Feb 13, 2014
1 parent
0d2284e
commit b571da0
Showing
7 changed files
with
42 additions
and
92 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
--format Fuubar | ||
--color | ||
--drb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,58 +1,42 @@ | ||
require 'rubygems' | ||
|
||
require 'coveralls' | ||
Coveralls.wear! if ENV['TRAVIS'] | ||
|
||
require 'spork' | ||
|
||
# uncomment the following line to use spork with the debugger | ||
# require 'spork/ext/ruby-debug' | ||
|
||
Spork.prefork do | ||
# simplecov | ||
# unless ENV['DRB'] | ||
# require 'simplecov' | ||
# SimpleCov.start 'rails' | ||
# end | ||
# Loading more in this block will cause your tests to run faster. However, | ||
# if you change any configuration or code from libraries loaded here, you'll | ||
# need to restart spork for it take effect. | ||
ENV["RAILS_ENV"] ||= 'test' | ||
require File.expand_path("../../spec/dummy/config/environment", __FILE__) | ||
require 'rspec/rails' | ||
require 'rspec/autorun' | ||
|
||
# Run any available migration | ||
ActiveRecord::Migrator.migrate File.expand_path("../dummy/db/migrate/", __FILE__) | ||
|
||
# Requires supporting ruby files with custom matchers and macros, etc, | ||
# in spec/support/ and its subdirectories. | ||
Dir[File.join(File.dirname(__FILE__), 'support', '**', '*.rb')].each { |f| require f } | ||
|
||
RSpec.configure do |config| | ||
config.use_transactional_fixtures = false | ||
# config.fixture_path = "#{::Rails.root}/spec/fixtures" | ||
config.infer_base_class_for_anonymous_controllers = false | ||
config.treat_symbols_as_metadata_keys_with_true_values = true | ||
config.order = "random" | ||
# Filter specs to only run focus specs | ||
config.filter_run :focus => true | ||
# if none are focused, run everything | ||
config.run_all_when_everything_filtered = true | ||
# include the routes url_helpers | ||
config.before do | ||
@routes = Smithy::Engine.routes | ||
# for rspec >= 2.13 | ||
assertion_instance.instance_variable_set(:@routes, Smithy::Engine.routes) if respond_to?(:assertion_instance) | ||
end | ||
end | ||
if ENV['TRAVIS'] | ||
require 'coveralls' | ||
Coveralls.wear! | ||
end | ||
|
||
Spork.each_run do | ||
# simplecov | ||
# if ENV['DRB'] | ||
# require 'simplecov' | ||
# SimpleCov.start 'rails' | ||
# end | ||
FactoryGirl.reload | ||
# Loading more in this block will cause your tests to run faster. However, | ||
# if you change any configuration or code from libraries loaded here, you'll | ||
# need to restart spork for it take effect. | ||
ENV["RAILS_ENV"] ||= 'test' | ||
require File.expand_path("../../spec/dummy/config/environment", __FILE__) | ||
require 'rspec/rails' | ||
require 'rspec/autorun' | ||
|
||
# Run any available migration | ||
ActiveRecord::Migrator.migrate File.expand_path("../dummy/db/migrate/", __FILE__) | ||
|
||
# Requires supporting ruby files with custom matchers and macros, etc, | ||
# in spec/support/ and its subdirectories. | ||
Dir[File.join(File.dirname(__FILE__), 'support', '**', '*.rb')].each { |f| require f } | ||
|
||
RSpec.configure do |config| | ||
config.use_transactional_fixtures = false | ||
# config.fixture_path = "#{::Rails.root}/spec/fixtures" | ||
config.infer_base_class_for_anonymous_controllers = false | ||
config.treat_symbols_as_metadata_keys_with_true_values = true | ||
config.order = "random" | ||
# Filter specs to only run focus specs | ||
config.filter_run :focus => true | ||
# if none are focused, run everything | ||
config.run_all_when_everything_filtered = true | ||
# include the routes url_helpers | ||
config.before(:suite) do | ||
FactoryGirl.reload | ||
end | ||
config.before do | ||
@routes = Smithy::Engine.routes | ||
# for rspec >= 2.13 | ||
assertion_instance.instance_variable_set(:@routes, Smithy::Engine.routes) if respond_to?(:assertion_instance) | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
require 'factory_girl' | ||
RSpec.configure do |config| | ||
config.include FactoryGirl::Syntax::Methods | ||
end |