decko-commons/decko

View on GitHub
mod/edit/spec/set/all/editing_spec.rb

Summary

Maintainability
A
0 mins
Test Coverage
# -*- 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