Sha256: e0c4531b584eb0823cb0076847b2ec1088845da77bed1122f07603986014f374
Contents?: true
Size: 686 Bytes
Versions: 3
Compression:
Stored size: 686 Bytes
Contents
require 'spec_helper' require 'support/shared_examples/view_helpers' module Draper describe Draper do describe '.setup_action_controller' do it 'includes api only compatability if base is ActionController::API' do base = ActionController::API Draper.setup_action_controller(base) expect(base.included_modules).to include(Draper::Compatibility::ApiOnly) end it 'does not include api only compatibility if base ActionController::Base' do base = ActionController::Base Draper.setup_action_controller(base) expect(base.included_modules).not_to include(Draper::Compatibility::ApiOnly) end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
draper-3.1.0 | spec/draper/draper_spec.rb |
draper-3.0.1 | spec/draper/draper_spec.rb |
draper-3.0.0 | spec/draper/draper_spec.rb |