mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: Plugin "admin_js" translations bundle was not fetched.
This commit is contained in:
@@ -18,6 +18,26 @@ describe ExtraLocalesController do
|
||||
get :show, bundle: '-invalid..character!!'
|
||||
expect(response).to_not be_success
|
||||
end
|
||||
|
||||
it "should include plugin translations" do
|
||||
JsLocaleHelper.expects(:plugin_translations).with("en").returns({
|
||||
"admin_js" => {
|
||||
"admin" => {
|
||||
"site_settings" => {
|
||||
"categories" => {
|
||||
"github_badges" => "Github Badges"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}).at_least_once
|
||||
|
||||
get :show, bundle: "admin"
|
||||
|
||||
expect(response).to be_success
|
||||
expect(response.body.include?("github_badges")).to eq(true)
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user