RSpec Code Examples

 

 

I18n::Backend::Weeler
groups
returns ordered list0.05158s
returns 2 groups0.00739s
#html?
is true if value contains html0.01459s
is true if key is html0.00753s
is false if value not contains html0.00728s
#lookup
returns translation0.02102s
show warning0.00956s
missing translations
persists the key0.05002s
lookup persists interpolation keys when looked up directly0.01652s
lookup does not persist the key twice0.01500s
creates no stub for base key in pluralization0.02627s
creates a stub when a custom separator is used0.02134s
creates one stub per pluralization0.02550s
creates a stub when a custom separator is used and the key contains the flatten separator (a dot character)0.02016s
creates a stub per pluralization when a custom separator is used0.02465s
exist in yml
already stored
saves the fallback backend value0.01558s
new translation
persist it0.01978s
cache
is same as updates timestamp
does not reload cache0.01992s
differs from settings timestamp
reloads cache0.03153s
#interpolations
can persist0.01697s
#available_locales
finds one locale0.00772s
#reload_cache
writes last translations update timestamp to cache0.01458s
clears translations cache0.00825s
loads all translated data to cache0.02345s
#store_translations
store_translations does not allow ambiguous keys (2)0.03013s
store_translations does not allow ambiguous keys (1)0.03733s
can store translations with keys that are translations containing special chars0.01595s
#value
runs kernel if translation is_proc0.01464s
returns boolean if translation boolean0.05714s
Weeler::ActionView::Helpers::TranslationHelper
dont renders key0.01833s
I18n::HumanizeMissingTranslations
.call
when exception is not I18n::MissingTranslation
does not intercept it0.01482s
when exception is I18n::MissingTranslation
humanizes missing translations0.01364s
Weeler::TranslationsController
GET #index
list translations0.05783s
PUT #update
dont updates if key is empty0.11275s
update translation in DB0.05057s
#create
doesnt create a duplicate key0.16618s
creates translation in DB0.05362s
GET #edit
retern edit translation form0.03878s
DELETE #destroy
destroys translation0.05990s
GET #new
retern new translation form0.03417s
GET #export
retursns translation file0.04083s
POST #import
no file
redirects back0.03373s
submiting a file
adds translation from files0.35836s
Weeler::ActionController::Acts::Restful
acts_as_restful
permited title with array
actions
POST #order0.06598s
GET #index
assigns posts0.05141s
index returns success0.05150s
GET #edit
returns success status0.06492s
POST #create
sets only permited params0.05505s
redirects to edit path0.05474s
PUT #update
sets only permited params0.05459s
DELETE #destroy
destroys item0.10956s
GET #new
returns success status0.05583s
model
returns current controller model0.05128s
no permited params
actions
POST #create
warns developer0.05445s
sets only permited params0.05483s
permited all with block
GET #index
users order by for ordering0.05402s
permited all with block
actions
POST #create
sets only permited params0.05319s
I18n::Backend::Weeler::Exporter
as_xlsx_package
selected translations
first row should be title0.00828s
should have 2 rows0.00713s
other row with one translation0.00713s
all translations
should have 3 rows0.00937s
first row should be title0.00748s
other row with two translation0.00737s
other row with one translation0.00713s
I18n::Backend::Weeler::Dedupe
#dedupe
empty db
translation stores all translation in each locale0.14775s
#<ActionDispatch::Routing::RouteSet:0x007fa34aec5cf8>
#add_menu_item
adds resource to weeler menu item0.04334s
#mount Weeler::Engine
/weeler returns home0.04138s
#weeler_resources
mounts resources index route0.05158s
mounts resource new route0.05046s
mounts resource create route0.04376s
mounts resource show route0.04466s
mounts resource update route0.04351s
mounts resource edit route0.04204s
mounts resource destroy route0.04628s
when custom block given
calls it within resources method0.06927s
when destroy route is skiped within with only: option
does not mount destroy confirm route0.06753s
I18n::Backend::Weeler::Importer
import
full db
file import overrides value0.24260s
empty db
returns value if value is in file0.37290s
translation stores all translation in each locale0.22052s
returns nil if value is not file0.22817s
Weeler::ActionView::Helpers::FormHelper
creates a label0.02773s
create file field0.01355s
creates img preview tag0.01425s