Sha256: 65478bb4f4c93beb51de837087eab09d6361f938f6ea3511367a2fb3ac3a9418
Contents?: true
Size: 616 Bytes
Versions: 5
Compression:
Stored size: 616 Bytes
Contents
require 'spec_helper' describe Tellimus::SubscriptionsController do describe 'when customer is signed in' do before do @customer = Customer.create(email: 'tylerhoran@gmail.com') allow_any_instance_of(ApplicationController).to receive(:current_customer).and_return(@customer) end it 'works' do get :index, use_route: 'tellimus' end end describe 'when customer is not signed in' do before do allow_any_instance_of(ApplicationController).to receive(:current_customer).and_return(nil) end it 'works' do get :index, use_route: 'tellimus' end end end
Version data entries
5 entries across 5 versions & 1 rubygems