Sha256: 90e6e5a39f551dec113291b95731099c3bfec85524062c7fa7e5c1a9f5db6289

Contents?: true

Size: 634 Bytes

Versions: 1

Compression:

Stored size: 634 Bytes

Contents

# -*- coding: utf-8 -*-
require 'spec_helper'

describe Courier::Template::Base do

  subject { described_class.new(:name=>:template_key)}

  its(:name) { should == :template_key }

  context '#get_text' do
    it 'should return text with localized tranlation' do
      subject.should_receive(:name) { 'template_key' }
      subject.
        get_text(:some_option=>123,:service=>double(:name=>'facebook')).should ==
        'translation missing: en.courier.facebook.template_key'
    end
  end

  # context '#sets_by_owner' do
  #   let(:owner) { Factory :user }
  #   it do
  #     subject.sets_by_owner(owner)
  #   end
  # end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
courier-0.1.3 spec/courier/template/base_spec.rb