decko-commons/decko

View on GitHub
mod/format/spec/set/all/title_spec.rb

Summary

Maintainability
A
0 mins
Test Coverage
RSpec.describe Card::Set::All::Title do
  context "with text format" do
    it "renders title" do
      expect(format_subject(:base).render_title).to eq "A"
    end

    it "renders title with title arg" do
      expect(format_subject(:base).render!("title", title: "My Title"))
        .to eq "My Title"
    end
  end
end