Sha256: 31a08b5aff4e6beee36c7557d10d85fbec9bc07fdcfd1c134b4a2ec3a67e05ae
Contents?: true
Size: 584 Bytes
Versions: 7
Compression:
Stored size: 584 Bytes
Contents
require 'spec_helper' describe MetaPresenter::Helpers do let(:controller_class) { ApplicationController } let(:controller) { controller_class.new } let(:action_name) { 'logs' } before do allow(controller).to receive(:action_name).and_return(action_name) end describe '#presenter' do subject { controller.view_context.presenter } context "controller with this module included" do before do expect(controller_class.included_modules).to include(described_class) end it { is_expected.to be_a(ApplicationPresenter) } end end end
Version data entries
7 entries across 7 versions & 1 rubygems