Sha256: 81ec2328ffca6c2e875a5686a78174592b24b959b24f77af6a8a35dc32f6ffef
Contents?: true
Size: 558 Bytes
Versions: 18
Compression:
Stored size: 558 Bytes
Contents
require 'spec_helper' describe "A decorator spec" do it "can access helpers through `helper`" do expect(helper.content_tag(:p, "Help!")).to eq "<p>Help!</p>" end it "can access helpers through `helpers`" do expect(helpers.content_tag(:p, "Help!")).to eq "<p>Help!</p>" end it "can access helpers through `h`" do expect(h.content_tag(:p, "Help!")).to eq "<p>Help!</p>" end it "gets the same helper object as a decorator" do decorator = Draper::Decorator.new(Object.new) expect(helpers).to be decorator.helpers end end
Version data entries
18 entries across 18 versions & 4 rubygems