Sha256: b6ab550df211b95deae6e119c722485ab22312764e1305c46095a927ca9163d9
Contents?: true
Size: 661 Bytes
Versions: 3
Compression:
Stored size: 661 Bytes
Contents
# -*- encoding : utf-8 -*- describe Card::Set::Type::Toggle do it "has special editor" do assert_view_select render_editor("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(:closed_content, 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
card-1.20.4 | mod/standard/spec/set/type/toggle_spec.rb |
card-1.20.3 | mod/standard/spec/set/type/toggle_spec.rb |
card-1.20.2 | mod/standard/spec/set/type/toggle_spec.rb |