Rake tasks for testing

This commit is contained in:
Martin Lensment 2014-06-25 11:36:53 +03:00
parent 7e04591ccf
commit 5972b8fd7c
4 changed files with 33 additions and 3 deletions

View file

@ -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

View file

@ -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

View file

@ -5,5 +5,5 @@ module Epp
end
RSpec.configure do |c|
c.include Epp, type: :epp
c.include Epp, epp: true
end