mod/edit/spec/set/all/editing_spec.rb
# -*- encoding : utf-8 -*-
RSpec.describe Card::Set::All::Editing do
check_views_for_errors
describe "edit_nests view" do
it "shows editors for both absolute and relative nests" do
card_subject.content = "{{absolute}} AND {{+relative}}"
expect_view(:edit_nests).to have_tag "div.SELF-a" do
with_tag "div.card-editor", with: { "data-card-name": "absolute" }
with_tag "div.card-editor", with: { "data-card-name": "A+relative" }
end
end
end
end