mirror of
https://github.com/aasm/aasm
synced 2023-03-27 23:22:41 -04:00
make localizer specs independent from others
This commit is contained in:
parent
996f7e9675
commit
d39406106d
1 changed files with 4 additions and 1 deletions
|
@ -22,9 +22,12 @@ describe AASM::SupportingClasses::Localizer do
|
|||
before(:all) do
|
||||
I18n.load_path << 'spec/en.yml'
|
||||
I18n.default_locale = :en
|
||||
I18n.reload!
|
||||
end
|
||||
|
||||
after(:all) { I18n.load_path.clear }
|
||||
after(:all) do
|
||||
I18n.load_path.clear
|
||||
end
|
||||
|
||||
let (:foo_opened) { LocalizerTestModel.new }
|
||||
let (:foo_closed) { LocalizerTestModel.new.tap { |x| x.aasm_state = :closed } }
|
||||
|
|
Loading…
Reference in a new issue