Sha256: be9593011aaf65332e1c4eef35fe14e1406221a5366bfcc2c7c93467f634e153
Contents?: true
Size: 1.04 KB
Versions: 3
Compression:
Stored size: 1.04 KB
Contents
require 'spec_helper' require 'pathname' require 'engineyard-serverside/callbacks/collection' module EY module Serverside module Callbacks describe Collection do let(:paths) {Object.new} let(:deploy_hooks) {described_class::DeployHooks} let(:service_hooks) {described_class::ServiceHooks} before(:each) do allow(deploy_hooks). to receive(:load). with(paths) allow(service_hooks). to receive(:load). with(paths) end describe '.load' do let(:result) {described_class.load(paths)} it 'loads deploy hooks' do expect(deploy_hooks).to receive(:load).with(paths) result end it 'loads service hooks' do expect(service_hooks).to receive(:load).with(paths) result end it 'is a combined callbacks collection' do expect(result).to be_a(described_class::Combined) end end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems