This file contains hidden or 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
group :test do | |
gem 'remote_database_cleaner' | |
end |
This file contains hidden or 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
# Gemfile in *home* | |
group :test, :development do | |
gem 'factory_girl_rails' | |
gem 'remote_factory_girl_home_rails' | |
end |
This file contains hidden or 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
# Gemfile in client | |
group :test do | |
gem 'remote_factory_girl' | |
end |
This file contains hidden or 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
# Gemfile | |
group :test do | |
gem 'database_cleaner' | |
gem 'factory_girl_rails' | |
end |
This file contains hidden or 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
# config/routes.rb in home | |
YourApplication::Application.routes.draw do | |
... | |
if defined?(RemoteDatabaseCleanerHomeRails::Engine) | |
mount RemoteDatabaseCleanerHomeRails::Engine, at: '/remote_database_cleaner' | |
end | |
... | |
end |
This file contains hidden or 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
# config/environments/test.rb | |
YourApplication::Application.configure do | |
... | |
config.remote_database_cleaner_home_rails.enable = true | |
... | |
end |
This file contains hidden or 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
# spec/spec_helper.rb in client | |
RemoteDatabaseCleaner.configure do |config| | |
config.home = { host: 'localhost', | |
port: 4000, | |
end_point: '/remote_database_cleaner/home/clean' } | |
end | |
RSpec.configure do |config| | |
config.before(:suite) do | |
RemoteDatabaseCleaner.clean |
This file contains hidden or 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
# config/routes.rb` in home | |
YourApplication::Application.routes.draw do | |
... | |
if defined?(RemoteFactoryGirlHomeRails::Engine) | |
mount RemoteFactoryGirlHomeRails::Engine, at: '/remote_factory_girl' | |
end | |
... | |
end |
This file contains hidden or 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
# config/environments/test.rb in home | |
YourApplication::Application.configure do | |
... | |
config.remote_factory_girl_home_rails.enable = true | |
... | |
end |
This file contains hidden or 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
# spec/spec_helper.rb` in client | |
RemoteFactoryGirl.configure do |config| | |
config.home = { host: 'localhost', | |
port: 4000, | |
end_point: '/remote_factory_girl/home' } | |
config.return_with_root = false | |
end |