Sha256: c5718065f40794b0f01c1430099639810acbc7990bee439473ea8b3f87d0cd86
Contents?: true
Size: 573 Bytes
Versions: 8
Compression:
Stored size: 573 Bytes
Contents
require "test_helper" require "trailblazer/deprecation/context" class DeprecationContextTest < Minitest::Spec class Create < Trailblazer::Operation step :create_model def create_model(options, params:, **) options["model"] = params.inspect options[:user] = options["current_user"] end end it do result = Create.( "params"=> {title: "Hello"}, "current_user" => user=Object) result.inspect(:model, :user, :current_user, :params).must_equal %{<Result:true ["{:title=>\\\"Hello\\\"}", Object, Object, {:title=>\"Hello\"}] >} end end
Version data entries
8 entries across 8 versions & 1 rubygems