Sha256: 22f2d3ab284d37848dc21d5b64ac4d81b0eba78a072076e272e4821e184995bb

Contents?: true

Size: 926 Bytes

Versions: 1

Compression:

Stored size: 926 Bytes

Contents

require 'spec_helper'

describe Scidea::Hsfc::Policies::Helpers::PoliciesHelper do
  let(:locale) { 'en' } 

  describe "hsfc_policies_privacy_policy_label" do
    before do
      helper.stub(:'t').and_return("This is the <a>policy</a> end")
      Setting.stub(:value).and_return("<a href=\"\">Blah!</a>")
    end          

    it "should return the translation with the url interpolated" do
      helper.hsfc_policies_privacy_policy_label(locale).should == "This is the <a href=\"\">Blah!</a> end"
    end
          
  end

  describe "hsfc_policies_terms_label" do
    before do
      helper.stub(:'t').and_return("This is the <a>terms</a> end")
      Setting.stub(:value).and_return("<a href=\"#\">blah</a>")
    end          

    it "should return the translation with the url interpolated" do
      helper.hsfc_policies_terms_label(locale).should == "This is the <a href=\"#\">blah</a> end"
    end
  end
end #describe

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
scidea-hsfc-policies-0.0.3 spec/helpers/policies_helper_spec.rb