Sha256: d2786431ccf5dba7e829ea7d4774473a051430336700f28badf0c10e65cc9d0b

Contents?: true

Size: 474 Bytes

Versions: 30

Compression:

Stored size: 474 Bytes

Contents

# -*- encoding : utf-8 -*-

describe Card::EmailHtmlFormat do
  it "renders full urls" do
    Card::Env[:protocol] = 'http://'
    Card::Env[:host] = 'www.fake.com'
    expect(render_content('[[B]]', :format=>'email_html')).to eq('<a class="known-card" href="http://www.fake.com/B">B</a>')
  end
  
  describe "raw view" do
    it "renders missing included cards as blank" do
      expect(render_content('{{strombooby}}', :format=>'email_html')).to eq('')
    end
  end
end

Version data entries

30 entries across 30 versions & 2 rubygems

Version Path
card-1.16.6 mod/05_standard/spec/set/all/email_html_spec.rb
card-1.16.5 mod/05_standard/spec/set/all/email_html_spec.rb
card-1.16.4 mod/05_standard/spec/set/all/email_html_spec.rb
card-1.16.3 mod/05_standard/spec/set/all/email_html_spec.rb
card-1.16.2 mod/05_standard/spec/set/all/email_html_spec.rb
card-1.16.1 mod/05_standard/spec/set/all/email_html_spec.rb
card-1.16.0 mod/05_standard/spec/set/all/email_html_spec.rb
card-1.15.7 mod/05_standard/spec/set/all/email_html_spec.rb
card-1.15.6 mod/05_standard/spec/set/all/email_html_spec.rb
card-1.15.5 mod/05_standard/spec/set/all/email_html_spec.rb
card-1.15.4 mod/05_standard/spec/set/all/email_html_spec.rb
card-1.15.3 mod/05_standard/spec/set/all/email_html_spec.rb
card-1.15.2 mod/05_standard/spec/set/all/email_html_spec.rb
card-1.15.1 mod/05_standard/spec/set/all/email_html_spec.rb
card-1.15.0 mod/05_standard/spec/set/all/email_html_spec.rb
card-1.15.pre2 mod/05_standard/spec/set/all/email_html_spec.rb
card-1.15.pre mod/05_standard/spec/set/all/email_html_spec.rb
wagn-1.14.9 mod/05_standard/spec/set/all/email_html_spec.rb
wagn-1.14.8 mod/05_standard/spec/set/all/email_html_spec.rb
wagn-1.14.7 mod/05_standard/spec/set/all/email_html_spec.rb