Sha256: 20e18130ed87e368633c1588605bfa0fad54c2bb785da05d2420bcbee4f22dca

Contents?: true

Size: 429 Bytes

Versions: 1

Compression:

Stored size: 429 Bytes

Contents

require 'spec_helper'

# So we don't have to add rails-api as a dependency
ActionController::API = ActionController::Base
module Axel
  describe ControllerBase do
    its(:configured) { should == ::ActionController::Base }
    context "configured to use rails api" do
      before do
        subject.send(:config).stub uses_rails_api?: true
      end

      its(:configured) { should == ActionController::API }
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
axel-0.0.1 spec/lib/axel/controller_base_spec.rb