Sha256: 7af63247a02dd0574083525657da7ff5a4e2fac6e648f222d8f5ed1ef76f5d7a
Contents?: true
Size: 1.12 KB
Versions: 16
Compression:
Stored size: 1.12 KB
Contents
require 'test_helper' require 'workarea/api/documentation_test' module Workarea module Api module Admin class RecommendationSettingsDocumentationTest < DocumentationTest include Workarea::Admin::IntegrationTest resource 'Recommendation Settings' def test_and_document_show description 'Showing recommendation settings' route admin_api.product_recommendation_settings_path(':product_id') record_request do get admin_api.product_recommendation_settings_path(create_recommendations.id) assert_equal(200, response.status) end end def test_and_document_update description 'Updating recommendation settings' route admin_api.product_recommendation_settings_path(':product_id') record_request do patch admin_api.product_recommendation_settings_path(create_recommendations.id), params: { recommendation_settings: { product_ids: ['foo'] } }, as: :json assert_equal(204, response.status) end end end end end end
Version data entries
16 entries across 16 versions & 2 rubygems