Support for other i18n bundles

This commit is contained in:
Robin Ward
2016-08-25 16:33:29 -04:00
parent 7acbd63d92
commit 6070939daa
6 changed files with 103 additions and 15 deletions

View File

@ -0,0 +1,25 @@
require 'rails_helper'
describe ExtraLocalesController do
context 'show' do
it "needs a valid bundle" do
get :show, bundle: 'made-up-bundle'
expect(response).to_not be_success
expect(response.body).to be_blank
end
it "won't work with a weird parameter" do
get :show, bundle: '-invalid..character!!'
expect(response).to_not be_success
end
it "works with a valid bundle" do
get :show, bundle: 'admin'
expect(response).to be_success
expect(response.body).to be_present
end
end
end