Sha256: 52ccc78e6a3753158eba180e5fd9a7df4f9fb089955b54b90805b3951121604e
Contents?: true
Size: 533 Bytes
Versions: 18
Compression:
Stored size: 533 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 expect(essence.stripped_body).to eq("Hello!Welcome to Peters Petshop.") end end end
Version data entries
18 entries across 18 versions & 2 rubygems