Sha256: 99d9573f2296cb327e3f27d9b0448b8ed8c020501f3dd844a8592b9ca2c6a10d
Contents?: true
Size: 437 Bytes
Versions: 22
Compression:
Stored size: 437 Bytes
Contents
# frozen_string_literal: true require "spec_helper" describe "ActionController::Metal API" do before do @client = FactoryBot.create(:application) @resource = User.create!(name: "Joe", password: "sekret") @token = client_is_authorized(@client, @resource) end it "client requests protected resource with valid token" do get "/metal.json?access_token=#{@token.token}" should_have_json "ok", true end end
Version data entries
22 entries across 22 versions & 3 rubygems