Sha256: 2e932eeeeb4d1f7971561141a2afbed6b14de6c73fc8ed5f589ced552c5c5f6b
Contents?: true
Size: 648 Bytes
Versions: 8
Compression:
Stored size: 648 Bytes
Contents
# -*- encoding : utf-8 -*- RSpec.describe Card::Set::Type::Toggle do it "has special editor" do assert_view_select render_input("Toggle"), 'input[type="checkbox"]' end it "has yes/no as processed content" do expect(render_view(:core, type: "Toggle", content: "0")).to eq("no") expect(render_view(:core, type: "Toggle", content: "1")).to eq("yes") end describe "view :labeled_editor" do subject { render_view :labeled_editor, type: :toggle, name: "A+toggle" } it "has checkbox label" do is_expected.to have_tag("label", with: { for: "card_content" }) do with_text "toggle" end end end end
Version data entries
8 entries across 8 versions & 1 rubygems