mirror of
https://github.com/internetee/registry.git
synced 2025-08-02 16:02:03 +02:00
Rake tasks for testing
This commit is contained in:
parent
7e04591ccf
commit
5972b8fd7c
4 changed files with 33 additions and 3 deletions
|
@ -1,6 +1,6 @@
|
|||
require 'rails_helper'
|
||||
|
||||
describe 'EPP Session', type: :epp do
|
||||
describe 'EPP Session', epp: true do
|
||||
let(:server) { server = Epp::Server.new({server: 'localhost', tag: 'test', password: 'test'}) }
|
||||
|
||||
context 'when not connected' do
|
||||
|
|
|
@ -35,7 +35,7 @@ RSpec.configure do |config|
|
|||
DatabaseCleaner.strategy = :transaction
|
||||
end
|
||||
|
||||
config.before(:each, type: :epp) do
|
||||
config.before(:each, epp: true) do
|
||||
DatabaseCleaner.strategy = :truncation
|
||||
end
|
||||
|
||||
|
|
|
@ -5,5 +5,5 @@ module Epp
|
|||
end
|
||||
|
||||
RSpec.configure do |c|
|
||||
c.include Epp, type: :epp
|
||||
c.include Epp, epp: true
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue