Sha256: 8280e65d54cb2c0d65b1751adb868ad9f646d6e55addf7a69562be74bbce9dff

Contents?: true

Size: 335 Bytes

Versions: 11

Compression:

Stored size: 335 Bytes

Contents

require "spec_helper"

describe ApplicationController, type: :controller do
  controller do
    def index
      render plain: 'Done'
    end
  end

  describe "when calling index action" do
    it 'should be done' do
      get :index

      expect(response.status).to eq(200)
      expect(response.body).to eq "Done"
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
plasticine-1.2.8 spec/controllers/application_controller_spec.rb
plasticine-1.2.7 spec/controllers/application_controller_spec.rb
plasticine-1.2.6 spec/controllers/application_controller_spec.rb
plasticine-1.2.5 spec/controllers/application_controller_spec.rb
plasticine-1.2.4 spec/controllers/application_controller_spec.rb
plasticine-1.2.3 spec/controllers/application_controller_spec.rb
plasticine-1.2.2 spec/controllers/application_controller_spec.rb
plasticine-1.2.1 spec/controllers/application_controller_spec.rb
plasticine-1.2.0 spec/controllers/application_controller_spec.rb
plasticine-1.1.1 spec/controllers/application_controller_spec.rb
plasticine-1.1.0 spec/controllers/application_controller_spec.rb