Add active_language controller and cookie storage
This commit is contained in:
@@ -39,5 +39,12 @@ RSpec.describe "Root path", type: :request do
|
||||
get root_path
|
||||
expect(response.body).to include(user.username)
|
||||
end
|
||||
|
||||
it "should have a language drop-down" do
|
||||
user = FactoryBot.create(:user)
|
||||
sign_in user
|
||||
get root_path
|
||||
expect(response.body).to have_field("active_language_id")
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user