From 55418d433b701c3429151b32873003441e4c7861 Mon Sep 17 00:00:00 2001 From: Jill Klang Date: Fri, 8 Nov 2024 12:27:53 -0500 Subject: [PATCH] Remove spec --- packages/consent/spec/consent/dsl_spec.rb | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/packages/consent/spec/consent/dsl_spec.rb b/packages/consent/spec/consent/dsl_spec.rb index 64ebf812..06fbf3a4 100644 --- a/packages/consent/spec/consent/dsl_spec.rb +++ b/packages/consent/spec/consent/dsl_spec.rb @@ -46,22 +46,6 @@ end end - describe "#eval_view" do - it "accepts a conditions string for eval" do - dsl.eval_view :view_key, "View YEY", "{object: 1}" - - expect(subject.views[:view_key].conditions(nil)).to eql(object: 1) - end - - it "is a view that evaluate the condition as ruby with the user variable" do - user = double(id: 1) - - dsl.eval_view :view_key, "View YEY", "{user: user.id}" - - expect(subject.views[:view_key].conditions(user)).to eql(user: 1) - end - end - describe "#action" do let(:view_all) { double } let(:view_no_access) { double }