Sha256: 7a845b2dd642fe215710024813204c79e7ab5b45dac8e1190eb4674c0da2aa30

Contents?: true

Size: 400 Bytes

Versions: 6

Compression:

Stored size: 400 Bytes

Contents

# frozen_string_literal: true

$LOAD_PATH.unshift File.expand_path("../../", __FILE__)
require "rails_helper"

RSpec.describe PrivateController do
  describe "#show" do
    context "user is authenticated" do
      before do
        sign_in "foo@bar.com"
      end

      it "responds with a 200" do
        get :show
        expect(response).to have_http_status(:success)
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
omniauth-rails-0.6.0 spec/test_app/spec/controllers/private_controller_spec.rb
omniauth-rails-0.5.0 spec/test_app/spec/controllers/private_controller_spec.rb
omniauth-rails-0.4.0 spec/test_app/spec/controllers/private_controller_spec.rb
omniauth-rails-0.3.0 spec/test_app/spec/controllers/private_controller_spec.rb
omniauth-rails-0.2.0 spec/test_app/spec/controllers/private_controller_spec.rb
omniauth-rails-0.1.0 spec/test_app/spec/controllers/private_controller_spec.rb