Sha256: 303c9133e7a610bcf18133125c72f80548509ad188a0cd8999406c36d288f59e

Contents?: true

Size: 1.42 KB

Versions: 23

Compression:

Stored size: 1.42 KB

Contents

require 'rails_helper'
RSpec.describe Auth::Workflow::Requirement, type: :model, :requirement_model => true do

	context " -- wrapper -- " do 

		before(:all) do 

			User.delete_all

			## create one non admin user
			@u = User.new(attributes_for(:user_confirmed))
	        @u.save
	        @c = Auth::Client.new(:resource_id => @u.id, :api_key => "test", :app_ids => ["testappid"])
	        @c.redirect_urls = ["http://www.google.com"]
	        @c.versioned_create
	        @u.client_authentication["testappid"] = "testestoken"
	        @u.save
	        @ap_key = @c.api_key
	        @headers = { "CONTENT_TYPE" => "application/json" , "ACCEPT" => "application/json", "X-User-Token" => @u.authentication_token, "X-User-Es" => @u.client_authentication["testappid"], "X-User-Aid" => "testappid"}

			## create one admin user.
			@admin = User.new(attributes_for(:admin_confirmed))
	        @admin.admin = true
	        @admin.client_authentication["testappid"] = "testestoken2"
	        @admin.save
	        @admin_headers = { "CONTENT_TYPE" => "application/json" , "ACCEPT" => "application/json", "X-User-Token" => @admin.authentication_token, "X-User-Es" => @admin.client_authentication["testappid"], "X-User-Aid" => "testappid"}
			
		end

		context " -- create order flow -- " do 

			it " -- calculates requirement state  -- " do 
				
				### what is the calculation of requirement state and how does it work?
				##

			end

			
		end

	end

end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
wordjelly-auth-1.2.8 spec/models/auth/workflow/requirement_model_spec.rb
wordjelly-auth-1.2.6 spec/models/auth/workflow/requirement_model_spec.rb
wordjelly-auth-1.2.5 spec/models/auth/workflow/requirement_model_spec.rb
wordjelly-auth-1.2.4 spec/models/auth/workflow/requirement_model_spec.rb
wordjelly-auth-1.2.3 spec/models/auth/workflow/requirement_model_spec.rb
wordjelly-auth-1.2.2 spec/models/auth/workflow/requirement_model_spec.rb
wordjelly-auth-1.2.1 spec/models/auth/workflow/requirement_model_spec.rb
wordjelly-auth-1.2.0 spec/models/auth/workflow/requirement_model_spec.rb
wordjelly-auth-1.1.9 spec/models/auth/workflow/requirement_model_spec.rb
wordjelly-auth-1.1.8 spec/models/auth/workflow/requirement_model_spec.rb
wordjelly-auth-1.1.7 spec/models/auth/workflow/requirement_model_spec.rb
wordjelly-auth-1.1.6 spec/models/auth/workflow/requirement_model_spec.rb
wordjelly-auth-1.1.5 spec/models/auth/workflow/requirement_model_spec.rb
wordjelly-auth-1.1.4 spec/models/auth/workflow/requirement_model_spec.rb
wordjelly-auth-1.1.3 spec/models/auth/workflow/requirement_model_spec.rb
wordjelly-auth-1.1.2 spec/models/auth/workflow/requirement_model_spec.rb
wordjelly-auth-1.1.1 spec/models/auth/workflow/requirement_model_spec.rb
wordjelly-auth-1.1.0 spec/models/auth/workflow/requirement_model_spec.rb
wordjelly-auth-1.0.9 spec/models/auth/workflow/requirement_model_spec.rb
wordjelly-auth-1.0.8 spec/models/auth/workflow/requirement_model_spec.rb