Sha256: 27adda43e5ed0265e3014fef3ff557054b0e9c2aa3e6bc2cf4712468bcab4415
Contents?: true
Size: 482 Bytes
Versions: 16
Compression:
Stored size: 482 Bytes
Contents
require "spec_helper" describe Blogit::PostsHelper do describe :blog_post_tag do it "should create a tag element and give it a 'blog_post... prefixed class" do helper.blog_post_tag(:div, "hello", id: "blog_div", class: "other_class").should == %{<div class="other_class blog_post_div" id="blog_div">hello</div>} helper.blog_post_tag(:li, "hello", id: "blog_li").should == %{<li class="blog_post_li" id="blog_li">hello</li>} end end end
Version data entries
16 entries across 16 versions & 1 rubygems