This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rails_helper' | |
describe LiquidI18n do | |
# to define a liquid filter, you make a module with instance methods that | |
# gets included by liquid. You can't make them module_functions, so here | |
# we extend a generic class to call the filter | |
subject { Class.new.extend(LiquidI18n) } | |
before :all do |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# The <tt>LiquidI18nRails</tt> module allows us to use the +translate+ | |
# method of Rails' I18n library within liquid templates. To use it, | |
# simply pass the name of the text entry to the +t+ filter: | |
# | |
# {{ 'fundraiser.thank_you' | t }} | |
# | |
# The above tag is equivalent to calling: | |
# | |
# I18n.t('fundraiser.thank_you') | |
# |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ShareProgress::Button | |
instance methods | |
should respond to #page_url | |
should respond to #page_url= | |
should respond to #button_template | |
should respond to #button_template= | |
should respond to #page_title | |
should respond to #page_title= | |
should respond to #share_button_html | |
should respond to #share_button_html= |