Skip to content

Commit

Permalink
Remove spec
Browse files Browse the repository at this point in the history
  • Loading branch information
that-jill committed Nov 8, 2024
1 parent a0caa3e commit 55418d4
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions packages/consent/spec/consent/dsl_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand Down

0 comments on commit 55418d4

Please sign in to comment.