Sha256: 0c0f421ab15397356835fb7f15b47522b0bccd60ccb820da52335f84516d5bf0
Contents?: true
Size: 665 Bytes
Versions: 43
Compression:
Stored size: 665 Bytes
Contents
require 'spec_helper' describe SynchronizationsController, type: :controller do describe 'index' do subject { get :index } it { expect(subject).to be_success } context 'when user is logged in' do let(:organization) { create(:organization) } let(:synchronization) { create(:synchronization, organization: organization) } before do allow_any_instance_of(Maestrano::Connector::Rails::SessionHelper).to receive(:current_organization).and_return(organization) end it 'assigns the synchronizations' do subject expect(assigns(:synchronizations)).to eq([synchronization]) end end end end
Version data entries
43 entries across 43 versions & 1 rubygems