1
0
Fork 0
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:
Thorsten Böttger 2012-01-16 17:04:03 +01:00
parent 996f7e9675
commit d39406106d

View file

@ -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 } }