Sha256: 74c65983417df9e1dd3eba49aa31e20cea90371564c44a916dca5c4df3974352

Contents?: true

Size: 494 Bytes

Versions: 11

Compression:

Stored size: 494 Bytes

Contents

require 'spec_helper'

module Landable::Api
  describe ConfigurationsController, json: true do
    routes { Landable::Engine.routes }

    describe '#show' do
      include_examples 'Authenticated API controller', :make_request

      def make_request
        get :show
      end

      it 'renders the page as JSON' do
        make_request
        # defined in Landable Dummy Initalizer
        last_json['configurations'][0]['audit_flags'].should == %w(loans apr)
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
landable-1.13.1 spec/controllers/landable/api/configuration_controller_spec.rb
landable-1.12.3 spec/controllers/landable/api/configuration_controller_spec.rb
landable-1.12.2 spec/controllers/landable/api/configuration_controller_spec.rb
landable-1.12.1 spec/controllers/landable/api/configuration_controller_spec.rb
landable-1.11.1 spec/controllers/landable/api/configuration_controller_spec.rb
landable-1.11.0 spec/controllers/landable/api/configuration_controller_spec.rb
landable-1.10.0.rc2 spec/controllers/landable/api/configuration_controller_spec.rb
landable-1.10.0.rc1 spec/controllers/landable/api/configuration_controller_spec.rb
landable-1.9.2 spec/controllers/landable/api/configuration_controller_spec.rb
landable-1.9.1 spec/controllers/landable/api/configuration_controller_spec.rb
landable-1.9.0 spec/controllers/landable/api/configuration_controller_spec.rb