Sha256: 48361548b82f6dd2cd7faadc3909fb53a850f92c34c9a6440766c54468a99cdd
Contents?: true
Size: 528 Bytes
Versions: 9
Compression:
Stored size: 528 Bytes
Contents
require 'spec_helper' module Alchemy describe EssenceRichtext do let(:essence) { EssenceRichtext.new(:body => '<h1>Hello!</h1><p>Welcome to Peters Petshop.</p>') } it_behaves_like "an essence" do let(:essence) { EssenceRichtext.new } let(:ingredient_value) { '<h1>Hello!</h1><p>Welcome to Peters Petshop.</p>' } end it "should save a HTML tag free version of body column" do essence.save essence.stripped_body.should == "Hello!Welcome to Peters Petshop." end end end
Version data entries
9 entries across 9 versions & 1 rubygems